[Dnsmasq-discuss] Can't ping when using FQDN

Guillaume Betous guillaume.betous at gmail.com
Fri Nov 8 09:37:43 GMT 2013


you must be right :

domain domain.local
nameserver <my.isp.ip.address1>
nameserver <my.isp.ip.address2>

2013/11/8 Albert ARIBAUD <albert.aribaud at free.fr>:
> 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?
>
>> Thanks,
>>
>> gUI
>
>
> Amicalement,
> --
> Albert.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss



-- 
Pour la santé de votre ordinateur, préférez les logiciels libres.
Lire son mail : http://www.mozilla-europe.org/fr/products/thunderbird/
Browser le web : http://www.mozilla-europe.org/fr/products/firefox/
Suite bureautique : http://www.libreoffice.org/download/



More information about the Dnsmasq-discuss mailing list