From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079044115473.tru64-unix-managers.marc@archive.invalid> From: "A. Mahendra Rajah, Systems Manager" Date: Tue, 01 Jun 1999 22:14:43 +0000 To: tru64-unix-managers Subject: DNS lookup order X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079044115473 Background: AS2000; Tru64 Unix 4.0D with patch #3 I am not sure what more I will need to do make sure that all nameserver lookups will consult the /etc/hosts file first on this alpha server. I have executed the `bindsetup' command and followed all the steps in the `Setting Up a Client' section. When it asked for the order in which to resolve host name queries, I selected 1, ie., it should consult the local /etc/hosts file first! Here is /etc/svc.conf file: aliases=local group=local hosts=local,bind netgroup=local networks=local passwd=local protocols=local rpc=local services=local I then did `/usr/sbin/rcinet restart' to make sure that TCP services got restarted. But, all nameserver queries get sent to the nameservers listed in the /etc/resolv.conf, and the /etc/hosts file is never consulted. What could be missing? Another problem is that even though I have listed 4 hosts in the /etc/resolv.conf file, only the first one is consulted before declaring `unknown host' ! Any help will be appreciated. I will summarise. Thanks, -- mahendra ......................................................................... A. Mahendra Rajah Email: Mahendra@Meena.CC.URegina.CA VMS & DUNIX Systems Manager Phone: (306) 585-4496 Dept. of Computing Services FAX: (306) 585-5060 University of Regina, Regina, Sask., S4S 0A2 Canada. .........................................................................