Link to home
Start Free TrialLog in
Avatar of sam74
sam74

asked on

Name Resolution in UNIX

Can anybody tell me the name resolution mechanism in UNIX servers ??

In Windows 2000 it is DNS resolution first and then WINS resolution. What is the order in UNIX ?

Thanks
Sam
Avatar of Tintin
Tintin

Depends on the flavour of Unix, but you may have /etc/nsswitch.conf

Look at the hosts line in /etc/nsswitch.conf, it may be something like:
hosts: files nis dns

This would lokk at the local host file (/etc/hosts) first, then query you NIS server, then query the nameservers (DNS) that are specified in /etc/resolv.conf
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On a linux system your /etc/host.conf file contains:

order hosts,bind

which means it will look for a hosts file, then query DNS. This will be similar on FreeBSD.

\Ben.