T o n g <mlist4sunt...@yahoo.com> wrote: > $ dig maroon > maroon. 0 IN A 192.168.2.100
> $ ping maroon > ping: unknown host maroon > $ cat /etc/resolv.conf > search local All host lookups are modified by the hosts entry in /etc/nsswitch.conf. This should generally be "files dns" (or "files {stuff} dns {stuff}"). First you need to check that. Next you need to consider what's actually happening here. 1. Dig is explicitly looking for the name "maroon.". 2. Ping, on the other hand, is using the resolver library that honours the search directive in /etc/resolv.conf. This means that the value will be appended to each unqualified request prior to lookup, i.e. ping will expect to find "maroon.local." My recommendation would be either to change your local DNS server so that it adds ".local" to all unqualified hostnames, or to remove the search directive from your resolv.conf. I think your next posting mentions that you're using dnsmasq, in which case the options to consider would be "domain" and "expand-hosts", and possibly "domain-needed". See the example dnsmasq configuration file at /usr/share/doc/dnsmasq-base/examples/dnsmasq.conf.example. Chris -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/iohv28xk3c....@news.roaima.co.uk