[Dnsmasq-discuss] Can't ping when using FQDN
albert.aribaud at free.fr
Fri Nov 8 07:25:07 GMT 2013
Le 08/11/2013 07:44, Guillaume Betous a écrit :
> Hi !
> I'm trying to setup my local network with a local domain (say "domain.local").
> In dnsmasq.conf :
> - local=/domain.local/
> - domain=domain.local
> - expand_hosts
> Only the server has a fixed IP address (192.168.0.11), all other use DNS :
> DNS is based on machine hostname => this works great, all machine have
> it's right IP address
> e.g. :
> - dhcp-host=foo,192.168.0.2,infinite
> - dhcp-host=bar,192.168.0.30,infinite
> On the different machine, the /etc/resolv.conf seems to be correctly updated :
> domain domain.local
> search domain.local
> nameserver 192.168.0.11
> When I ping a computer, I have very different results following the test case :
>>From other computer, with single name => OK
> guillaume at foo:~$ ping bar
> PING bar.domain.local (192.168.0.30) 56(84) bytes of data.
> 64 bytes from bar.domain.local (192.168.0.30): icmp_seq=1 ttl=64 time=110 ms
> 64 bytes from bar.domain.local (192.168.0.30): icmp_seq=2 ttl=64 time=153 ms
> 64 bytes from bar.domain.local (192.168.0.30): icmp_seq=3 ttl=64 time=78.1 ms
>>From server, with single name => Not OK
> guillaume at server:~$ ping bar
> ping: unknown host bar
>>From other computer or server, with full name => Not OK
> guillaume at foo:~$ ping bar.domain.local
> ping: unknown host bar.domain.local
> Do you have an idea on what is wrong with my configuration ?
Most probably the server is not configured to use itself as a DNS, and
therefore relies on its /etc/hosts on for resolution; and as the names
of the machine which dnsmasq serves are not in the server's /etc/hosts,
they don't get resolved locally.
What does /etc/resolv.conf contain on the server?
More information about the Dnsmasq-discuss