> I want to find name of a computer from /etc/hosts first, and next search
> via DNS server.
> But it seems that if I set DNS server, it first finds via DNS server,
> and never look at /etc/hosts.
> How can I adjust this?
> --
> Micro Architecture and System Software Lab.
> Tel : 871-8096(Home), 883-8430(Lab), 019-371-8096(PCS)
> Fax : 882-4656, Homepage : http://altair.snu.ac.kr/~hacker
There are 2 ways to do this.
1) Edit the /etc/netsvc.conf file (global)
# to search /etc/hosts then DNS then NIS
hosts = local , bind , nis
# to search DNS, /etc/hosts, NIS
hosts = bind , local , nis
2) export the NSORDER variable (per user... overrides /etc/netsvc.conf)
export NSORDER = local , bind , nis
--
________________________________________________________
Comments, views, and opinions are mine alone, not IBM's.