[Dnsmasq-discuss] dnsmasq server can't resolve dnsmasq leases‏

Mayk Eskilla meskilla at outlook.com
Tue Aug 4 12:39:14 BST 2015


Resend, had to loose HTML coding in my mailer, sry for that!

My dnsmasq server does a fine job offering dhcp leases to clients and nameservice lookup as a gateway.

Only one feature is missing on my todo list:

Clients can resolve each others hostname, but the gateway itself can't resolve the clients hostname he leased an address to.

Something in my configuration most be wrong or missing:

Here's my gateway configuration, the clients don't run dnsmasq ...

cat /etc/dnsmasq.conf
interface=eth0
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=20
dhcp-range=192.168.1.10,192.168.1.50,255.255.255.0,24h
dhcp-option=3,192.168.1.1
dhcp-authoritative
domain=ServerD
stop-dns-rebind

...and the hosts file on my gateway, where dnsmasq is running

cat /etc/hosts
192.168.1.1     SRV.ServerD SRV
::1             ip6-localhost ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

cat /etc/hostname 
SRV

hostname -s
SRV

hostname -f
SRV.ServerD 

cat /tmp/dnsmasq.leases 
1438759931 MY:MA:CA:DD:RE:SS 192.168.1.23 CLIENT1 *

Can somebody tell me what's wrong in that setup, so SRV can't resolve to CLIENT1 as well?

Regards,

Mayk 		 	   		  


More information about the Dnsmasq-discuss mailing list