- 论坛徽章:
- 0
|
NOTFOUND=return | continue
e.g. /etc/nsswitch.conf:
hosts dns [NOTFOUND=continue] nis [NOTFOUND=return] files
It means: check DNS first for name resolution, if found, then stop; otherwise continue to lookup the host in NIS, if found then stop; otherwise return \"host not found\" sort of messages. This means the files, like /etc/hosts, will never be checked for host name lookup.
So, if you have NIS running on your network, and you prefer to search NIS first, and then local files, the full line should be :
hosts nis [NOTFOUND=continue] files
If you prefer files first, then you have to swap the nis and files above. |
|