I am running DNSMasq as both my DHCP and DNS server on my DD-WRT router. I had thought that DNSMasq was adding hosts that it registered in DHCP to the DNS server automatically, but I have a few machines on my network that the DNS server claims that it can't find. What else do I need to do?

DNSMasq config (/tmp/dnsmasq.conf):


dhcp-option= option:dns-server, # DHCP option 006

server =
server =
server =
server =

DNSMasq leases file (/tmp/dnsmasq.leases):

86400 00:00:00:00:00:01 host_fail *
86400 00:00:00:00:00:02 host_succeed *

Ping/nslookup results:

root@dd-wrt:~# ping host_succeed
PING host_succeed ( 56 data bytes
64 bytes from seq=0 ttl=64 time=2.138 ms
64 bytes from seq=1 ttl=64 time=0.892 ms

--- host_succeed ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.892/1.515/2.138 ms
root@dd-wrt:~# ping host_fail
root@dd-wrt:~# nslookup host_succeed
Address 1: dd-wrt.domain

Name:      host_succeed
Address 1: host_succeed
root@dd-wrt:~# nslookup host_fail
Address 1: dd-wrt.domain

root@dd-wrt:~# cat /etc/hosts   localhost     dd-wrt.domain
root@dd-wrt:~# cat /etc/resolv.conf 
search isp.net
search domain

What could differ between host_fail and host_succeed? I doubt it, but does anything need to change on the client side? Does nslookup transmit any data to the host itself (rather than the DNS only)?

I earlier had issues with my client not sending a host name, but I believe that the router and leases now confirm that my client is doing that correctly.

What do I need to change to ensure that DNSMasq can serve DNS requests for these hosts to which its given DHCP leases?


My client in question was an XBian Raspberry Pi, and a subsequent update after a few bugfixes seems to have solved the problem.

  • Another cycle where an update broke this functionality, and then restored this functionality with a subsequent update happened for me. – palswim Jul 27 '15 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.