[Dnsmasq-discuss] general question

Luca Landi me at lucalandi.com
Wed Jul 20 00:03:02 BST 2005


Staenker ha scritto:
> [...]
> And here what i expect you want to know too: 
> mrsec:~# cat /var/lib/misc/dnsmasq.leases
> 1121814392 00:40:05:54:16:83 192.168.1.3 mrschnegge 01:00:40:05:54:16:83
> 1121814647 00:0e:35:05:f4:67 192.168.1.2 mrlapwl 01:00:0e:35:05:f4:67
> mrsec:~# ping mrlapwl
> ping: unknown host mrlapwl
> 
> If i write the hosts into /etc/hosts it works.

Hi, I've got a couple of little suspects. From the snippet above I 
understand that your pings don't work from the machine running dnsmasq, so 
my question is: did you specify address 127.0.0.1 as a nameserver (possibly 
the preferred one) for that machine in /etc/resolv.conf? this is most 
likely the configuration you are missing.

If that file is ok then the next question is: is your /etc/nsswitch.conf 
properly configured? specifically it should have a line like the following:

hosts:		files dns

or eventually like the following:

hosts:		dns files

or anyway a "hosts:" line with the "dns" service specified somewhere in the 
line (if it's the first service specified or the last one or is in the 
middle of other services in that same line doesn't really matter right 
now). The concept is: if /etc/nsswitch.conf has the entry named "hosts:" 
WITHOUT the word "dns" listed therein then that machine will never query 
dnsmasq.

HTH

Bye,
Luca



More information about the Dnsmasq-discuss mailing list