I am wanting to keep all of my configuration in the dnsmasq.conf file, therefor am not maintaining a separate hosts file.

For some machines that are not running a DHCP client, and therefore never request an IP lease, those machines will not be returned when dnsmasq is asked for name resolution.

In this example, "proxy" is a DHCP client machine, and "routerpi" is a static IP machine with no DHCP client installed.

root@routerpi:/etc# nslookup proxy
Server:        127.0.0.1
Address:    127.0.0.1#53

Non-authoritative answer:
*** Can't find proxy: No answer

root@routerpi:/etc# nslookup mediapi
Server:        127.0.0.1
Address:    127.0.0.1#53

Name:    mediapi
Address: 192.168.10.203

The entries in dnsmasq look like this:

dhcp-host=192.168.10.203,mediapi
dhcp-host=192.168.10.61,proxy

I have also tried the format that includes MAC addresses, but the result is the same:

# dhcp-host=dc:a6:32:4f:ce:4e,192.168.10.203,mediapi

And the log file contains:

dnsmasq: 147 127.0.0.1/53500 query[A] mediapi from 127.0.0.1
dnsmasq: 147 127.0.0.1/53500 DHCP mediapi is 192.168.10.203

dnsmasq: 171 127.0.0.1/56905 query[A] proxy from 127.0.0.1
dnsmasq: 171 127.0.0.1/56905 config proxy is NODATA-IPv4

How do I get the static IP hosts to be resolved?

This used to work, and I'm not sure what's changed.

--
Brian Michalk
Owner, Hasgrok.com, LLC.
512-699-4037
www.hasgrok.com


_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to