[Dnsmasq-discuss] dns not responding with server name

rance at frontiernet.net rance at frontiernet.net
Thu Jan 17 03:18:00 GMT 2008

Quoting Philippe Faure <philippe at faure.ca>:

<stuff snipped>

> Here are the contents of relevant files:
> hosts:
>   localhost
> # The following lines are desirable for IPv6 capable hosts
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts

the dnsmasq internal dns server can resolv any name/ip pair that is  
found in ether the dhcp pool, or the hosts file referenced in your  
dnsmasq config file.

(usually /etc/hosts

ALL static ips need to have names listed in yoru /etc/hosts file or  
you cant resolv them.

entries like: fileserver

in your hosts file would help.

This will fix the clients being able to ping the server.

Now to fix the server pinging itself.

the servers resolv.conf file is how that box gets its name server.

so you need to do this:

copy the resolv.conf file that works with your isp somewhere else.
then edit the resolv.conf file to point the server to itself for name  

then edit the dnsmasq config file to tell dnsmasq to look at the  
different resolv.conf for its use.


More information about the Dnsmasq-discuss mailing list