[Dnsmasq-discuss] trouble with conflicting DNS resolution on MacOS
Bernd Prager
bernd at prager.ws
Fri Jan 10 23:49:50 UTC 2025
Very stange:
I have uncommented 'log-queries' and 'log-dhcp' in dnsmasq.conf.
When I do a 'ping' from the Linux box I get valid dnsmasq query logs.
When I do the same from the MacBook I get no related log entries at all.
It almost looks like that no commands ('ping', 'ssh' etc.) are hitting
the dnsmasq server:
❯ date; ping -c1 odin; ssh fenrir "grep dnsmasq /var/log/syslog | tail -n 8"
Fri Jan 10 15:27:56 PST 2025
PING prager.homeip.net (76.175.52.6): 56 data bytes
64 bytes from 76.175.52.6: icmp_seq=0 ttl=64 time=3.171 ms
--- prager.homeip.net ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 3.171/3.171/3.171/nan ms
2025-01-10T15:27:48.246259-08:00 fenrir dnsmasq[2481915]: reply
eu.events.data.trafficmanager.net is <CNAME>
2025-01-10T15:27:48.246643-08:00 fenrir dnsmasq[2481915]: reply
onedscolprdneu12.northeurope.cloudapp.azure.com is 13.69.239.79
2025-01-10T15:27:48.253597-08:00 fenrir dnsmasq[2481915]: query[HTTPS]
onedscolprdfrc01.francecentral.cloudapp.azure.com from 192.168.1.185
2025-01-10T15:27:48.253978-08:00 fenrir dnsmasq[2481915]: forwarded
onedscolprdfrc01.francecentral.cloudapp.azure.com to 8.8.8.8
2025-01-10T15:27:48.254293-08:00 fenrir dnsmasq[2481915]: query[A]
onedscolprdfrc01.francecentral.cloudapp.azure.com from 192.168.1.185
2025-01-10T15:27:48.254684-08:00 fenrir dnsmasq[2481915]: forwarded
onedscolprdfrc01.francecentral.cloudapp.azure.com to 8.8.8.8
2025-01-10T15:27:48.264827-08:00 fenrir dnsmasq[2481915]: reply
onedscolprdfrc01.francecentral.cloudapp.azure.com is NODATA
2025-01-10T15:27:48.270834-08:00 fenrir dnsmasq[2481915]: reply
onedscolprdfrc01.francecentral.cloudapp.azure.com is 51.11.192.48
~ via 🐍 v3.13.1 on ☁️ (us-west-1)
❯ date; ssh fenrir "ping -c 1 odin; grep dnsmasq /var/log/syslog | tail
-n 8"
Fri Jan 10 15:27:59 PST 2025
PING odin.prager.homeip.net (192.168.1.3) 56(84) bytes of data.
64 bytes from odin.prager.homeip.net (192.168.1.3): icmp_seq=1 ttl=64
time=0.549 ms
--- odin.prager.homeip.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.549/0.549/0.549/0.000 ms
2025-01-10T15:28:00.409134-08:00 fenrir dnsmasq[2481915]: query[A]
odin.prager.homeip.net from 192.168.1.2
2025-01-10T15:28:00.409733-08:00 fenrir dnsmasq[2481915]: DHCP
odin.prager.homeip.net is 192.168.1.3
2025-01-10T15:28:00.410087-08:00 fenrir dnsmasq[2481915]: query[AAAA]
odin.prager.homeip.net from 192.168.1.2
2025-01-10T15:28:00.410457-08:00 fenrir dnsmasq[2481915]: forwarded
odin.prager.homeip.net to 8.8.8.8
2025-01-10T15:28:00.438044-08:00 fenrir dnsmasq[2481915]: reply
odin.prager.homeip.net is <CNAME>
2025-01-10T15:28:00.438607-08:00 fenrir dnsmasq[2481915]: reply
prager.homeip.net is NODATA-IPv6
2025-01-10T15:28:00.440069-08:00 fenrir dnsmasq[2481915]: query[PTR]
3.1.168.192.in-addr.arpa from 192.168.1.2
2025-01-10T15:28:00.440500-08:00 fenrir dnsmasq[2481915]: DHCP
192.168.1.3 is odin.prager.homeip.net
On 1/9/25 10:57 PM, Buck Horn via Dnsmasq-discuss wrote:
> On 09.01.25 22:22, Bernd Prager wrote:
>> I have a local network with the domain "prager.homeip.net" and local a
>> host "odin".
>>
>> 'dig' resolves the local host correctly, but 'ping' tries to connect
>> to the external network ip address instead.
>
>
> ping may use additional means to resolve a domain, not just plain DNS.
>
> Did you check whether/how requests corresponding to your ping'ed domain
> would register in dnsmasq's logs?
>
>
> Kind regards,
> Buck
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
More information about the Dnsmasq-discuss
mailing list