Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Order of name lookup in NIS, DNS (netsvc.conf?)

Status
Not open for further replies.

dnepr

Technical User
Dec 3, 2001
20
0
0
US
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.
 
Hi,



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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top