Can someone explain to me how you control the order of name lookups with NIS, DNS, /etc/hosts? I've heard somewhere, I think, that this is done via /etc/netsvc.conf, but don't understand it in detail.
5.6 Name resolution
If a network connection seems inexplicably slow at times but reasonable at
other times, you should check the name resolution configuration for your
system. To perform a basic diagnostic for name resolving, you can use either
the host command or the nslookup command.
# host dhcp240.itsc.austin.ibm.com
dhcp240.itsc.austin.ibm.com is 9.3.240.2
The name resolution can be served through either the remote DNS server or
the remote NIS server. If one of them is down, you have to wait until a TCP
time-out occurs. The name can be resolved by an alternate source, which can
be a secondary name server or the local /etc/hosts file.
First check the /etc/netsvc.conf file or NSORDER environment variable for
your particular name resolution ordering. Then check the /etc/resolv.conf file
for the IP address of the name server and try to ping it. If you can ping it, then
it is up and reachable. If not, try a different name resolution ordering. "Long live king Moshiach !"
h
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.