/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
/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