http://jmnote.com/wiki//etc/nsswitch.conf
- /etc/nsswitch.conf
- nsswitch.conf
목차[숨기기] |
기본값
# # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Valid entries include: # # nisplus Use NIS+ (NIS version 3) # nis Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # [NOTFOUND=return] Stop searching if not found so far # # To use db, put the "db" in front of "files" for entries you want to be # looked up first in the databases # # Example: #passwd: db files nisplus nis #shadow: db files nisplus nis #group: db files nisplus nis passwd: files shadow: files group: files #hosts: db files nisplus nis dns hosts: files dns # Example - obey only what nisplus tells us... #services: nisplus [NOTFOUND=return] files #networks: nisplus [NOTFOUND=return] files #protocols: nisplus [NOTFOUND=return] files #rpc: nisplus [NOTFOUND=return] files #ethers: nisplus [NOTFOUND=return] files #netmasks: nisplus [NOTFOUND=return] files bootparams: nisplus [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files rpc: files services: files netgroup: nisplus publickey: nisplus automount: files nisplus aliases: files nisplus
- → hosts: files dns 라는 부분은 호스트명을 찾을 때 1) /etc/hosts 파일에서 먼저 찾아보고 2) DNS에서 찾겠다는 뜻이다.
같이 보기
- /etc/hosts
- /etc/resolv.conf (DNS 설정)
- DNS
'UNIX > 유닉스 공통' 카테고리의 다른 글
[스크랩] AWK 명령 자세히 (0) | 2014.05.22 |
---|---|
[스크랩] AWK 명령어 상세 사용법 (0) | 2014.05.22 |
[스크랩] Swap memory 내용 (간략이 아님. 적용 방법은 다른 글 참조) (0) | 2014.02.12 |
[스크랩] SWAP 공간 늘려주기 (0) | 2014.02.12 |
리눅스 iso 파일 마운트 하는 방법 (0) | 2014.02.09 |