로그인
Sign in
/etc/nsswitch.conf

/etc/nsswitch.nis 파일에서


host(Domain) 찾을 순서지정하기


hosts : file -------> /etc/hosts

nis

dns -------> /etc/resolve.conf에 있는 name Server참조함.


#vi /etc/hosts

#

# Internet host table

#

127.0.0.1 localhost

168.126.63.21 hosting.woomna.net hosting

211.220.95.14 webhost1 webhost1.woomna.net loghost

211.220.95.16 webhost2

211.220.95.18 webhost3

210.222.17.250 testpc

211.220.95.22 cgihost

211.220.95.56 hostsms

211.220.95.20 mailhost mailhost.woomna.net

211.220.95.45 emc1

211.220.95.46 emc2

211.220.95.47 emc3

211.220.95.48 emc4


# /etc/nsswitch.nis:

#

# An example file that could be copied over to /etc/nsswitch.conf; it

# uses NIS (YP) in conjunction with files.

#

# "hosts:" and "services:" in this file are used only if the

# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.


# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.

passwd: files nis

group: files nis


#vi /etc/nsswitch.conf

# consult /etc "files" only if nis is down.

hosts: files nis [NOTFOUND=return] dns

networks: nis [NOTFOUND=return] files

protocols: nis [NOTFOUND=return] files

rpc: nis [NOTFOUND=return] files

ethers: nis [NOTFOUND=return] files

netmasks: nis [NOTFOUND=return] files

bootparams: nis [NOTFOUND=return] files

publickey: nis [NOTFOUND=return] files


#vi /etc/nsswitch.nis

# /etc/nsswitch.nis:

#

# An example file that could be copied over to /etc/nsswitch.conf; it

# uses NIS (YP) in conjunction with files.

#

# "hosts:" and "services:" in this file are used only if the

# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.


# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.

passwd: files nis

group: files nis


# consult /etc "files" only if nis is down.

hosts: nis [NOTFOUND=return] files dns

networks: nis [NOTFOUND=return] files

protocols: nis [NOTFOUND=return] files

rpc: nis [NOTFOUND=return] files

ethers: nis [NOTFOUND=return] files

netmasks: nis [NOTFOUND=return] files

bootparams: nis [NOTFOUND=return] files

publickey: nis [NOTFOUND=return] files


조회 수 :
523
추천 수 :
14 / 0
등록일 :
2003.12.13
17:17:20 (*.193.52.140)
엮인글 :
http://bestceok.com/xe/index.php?mid=sun_faq&document_srl=2974&act=trackback&key=7c8
게시글 주소 :
http://bestceok.com/xe/index.php?mid=sun_faq&document_srl=2974
List of Articles
번호 제목 글쓴이 날짜 조회 수
111 CDE: 화면 전원 관리를 변경하는 방법 하록 2004-11-10 563
110 Solaris 모니터 전원 항상 켜지게 하는 법.. 하록 2004-11-10 600
109 Informix Startup, Stop 방법 하록 2004-02-18 533
108 SUN Kernel 버젼 64Bit, 32Bit 판별법... 하록 2004-02-18 522
107 CD-ROM Mount 하록 2004-01-25 565
106 Disk 증설 후 File System Name 확인은... 하록 2004-01-25 559
105 Setup Menu에서 Booting Disk Setting 하록 2004-01-25 588
104 System 관리에 관한 FAQ 하록 2003-12-17 709
103 네트웍 관련 FAQ 하록 2003-12-17 823
102 개발 환경에 관한 FAQ 하록 2003-12-17 504
101 사용자 환경에 관한 FAQ 하록 2003-12-17 443
100 기타 관련 FAQ 하록 2003-12-17 414
99 문제점 해결에 관한 FAQ 모음집 하록 2003-12-17 982
98 패키지 설치 하록 2003-12-13 413
97 사용자 셋업하기 하록 2003-12-13 491
» HOST(DOMAIN)을 찾는 순서 지정하기 하록 2003-12-13 523
95 NIS Setup 하록 2003-12-13 501
94 백업방법 하록 2003-12-13 461
93 Solaris8 + Oracle 8.1.6 하록 2003-12-13 504
92 Solaris8 + Oracle 8i 하록 2003-12-13 699