Set the configuration --log-queries.

That will allow you to see if the queries are getting to dnsmasq, and it will give you a full dump of the DNS cache (including DHCP derived names) if you send the dnsmasq process SIGUSR1.

Both of these will help in diagnosing the problem.

Cheers,

Simon.


On 12/05/2022 15:55, Rance Hall via Dnsmasq-discuss wrote:
I in the beginning of troubleshooting an issue with name resolution in dnsmasq on a freebsd server.

I'm running dnsmasq 2.86 and I'm not able to resolve hostnames that are dhcp clients. This is a new development and may possibly be related to a FreeBSD system upgrade from 13.0-RELEASE to 13.0-RELEASE-p11.

Example, my desktop machine is a dhcp client and is active on the network, and can ping via hostname the firewall server that runs dnsmasq which is assigned a static IP and reads /etc/hosts for static names and /etc/resolv.conf.dnsmasq for upstream dns servers.

However the firewall cannot ping the client by name, despite a record for that host in the dnsmasq.leases file.

again, this is a new issue, and this used to work when the server was originally setup.  I can prove that the leases database file is being written to by the dnsmasq service as there are recent (read: from today) timestamps on the file itself.

I'd appreciate any pointers as I'm running out of things to check and haven't found an obvious problem yet.

Below is the startup log entry from a dnsmasq server restart.  Not sure if it helps, but I didnt want to ask without trying to prove that I tried to fix it myself.

<begin log snippet>
May 12 09:21:16 icm dnsmasq[17586]: started, version 2.86 cachesize 150
May 12 09:21:16 icm dnsmasq[17586]: compile time options: IPv6 GNU-getopt no-DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth cryptohash DNSSEC loop-detect no-inotify dumpfile May 12 09:21:16 icm dnsmasq-dhcp[17586]: DHCP, IP range 192.168.19.75 -- 192.168.19.125, lease time 12h May 12 09:21:16 icm dnsmasq-tftp[17586]: TFTP root is /usr/local/tftp secure mode May 12 09:21:16 icm dnsmasq[17586]: using only locally-known addresses for hallhome.private
May 12 09:21:16 icm dnsmasq[17586]: reading /etc/resolv.conf.dhcp
May 12 09:21:16 icm dnsmasq[17586]: using nameserver 71.10.216.1#53
May 12 09:21:16 icm dnsmasq[17586]: using nameserver 71.10.216.2#53
May 12 09:21:16 icm dnsmasq[17586]: using only locally-known addresses for hallhome.private
May 12 09:21:16 icm dnsmasq[17586]: read /etc/hosts - 8 addresses
</end log snippet>

Thanks for any assistance/pointers you can provide.

Rance

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

_______________________________________________
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