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
In Windows 2000 it is DNS resolution first and then WINS resolution. What is the order in UNIX ?
Thanks
Sam
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
order hosts,bind
which means it will look for a hosts file, then query DNS. This will be similar on FreeBSD.
\Ben.