macOS resets to default DNS after some time

I've configured my OpenWRT to announce the IP address of my Pi-Hole as the DNS server for all clients. The IP address of Pi-Hole is statically set to 192.168.1.100. My macOS computer happily sets its DNS servers to my Pi-Hole as soon as I reconnect to the wi-fi. However, after some time macOS decides to revert to the "default" DNS servers. I have no idea where macOS gets these DNS servers, they're 10.64.0.1 and fc00:bbbb:bbbb:bb01::1. I should add that I have disabled the IPv6 interface in OpenWRT.

I've set the DNS server of the LAN interface to 192.168.1.100. I've also added 6,192.168.1.100,192.168.1.100 to the DHCP options. I've attached a settings screenshot in this message. I tried to attach the Advanced Settings of the DHCP Server, but since I'm a new user I'm only allowed one attachment.

Any idea what is going on here?

At the bottom, I've attached some macOS logs that should be relevant to this issue, I don't understand what is happening though.

I am running this on ASUS RT-AC58U and the software is: Powered by LuCI openwrt-19.07 branch git-20.247.75781-0d0ab01 / OpenWrt 19.07.4 r11208-ce6496d796

The command to show these logs is: log show --predicate 'subsystem == "com.apple.symptomsd" AND category != "flow" AND message CONTAINS[cd] "DNS"' --info --debug --signpost --style compact --last 30m

2020-09-21 19:47:52.954 Df symptomsd[262:38880] [com.apple.symptomsd:netepochs] Received SCDynamicStore notification for DNS key, coalesced
2020-09-21 19:47:52.954 Df symptomsd[262:38880] [com.apple.symptomsd:netepochs] Determine if en0 has DNS server
2020-09-21 19:47:52.964 Df symptomsd[262:38880] [com.apple.symptomsd:netepochs] learning DNS servers for en0 from State key
2020-09-21 19:47:52.964 Df symptomsd[262:38880] [com.apple.symptomsd:netepochs] learning that en0 has DNS server: 192.168.1.100
2020-09-21 19:47:52.964 I  symptomsd[262:38880] [com.apple.symptomsd:netepochs] learning that en0 has DNS server over local route: 192.168.1.100
2020-09-21 19:47:52.964 Df symptomsd[262:38880] [com.apple.symptomsd:netepochs] learning that en0 has DNS server: 192.168.1.100
2020-09-21 19:47:52.965 I  symptomsd[262:38880] [com.apple.symptomsd:netepochs] learning that en0 has DNS server over local route: 192.168.1.100
2020-09-21 19:47:52.965 Df symptomsd[262:38880] [com.apple.symptomsd:netepochs] learning that en0 has DNS server: fdbc:c2b2:4a08::1
2020-09-21 19:47:52.965 I  symptomsd[262:38880] [com.apple.symptomsd:netepochs] learning that en0 has DNS server over default route: fdbc:c2b2:4a08::1
2020-09-21 19:49:37.275 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:49:37.275 Df symptomsd[262:3a3b7] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, not responding
2020-09-21 19:49:37.286 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_RESUMED_RESPONDING           mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:49:37.286 Df symptomsd[262:3a3b7] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, resumed responding
2020-09-21 19:50:33.345 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:50:33.345 Df symptomsd[262:3a98d] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, not responding
2020-09-21 19:50:33.384 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_RESUMED_RESPONDING           mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:50:33.384 Df symptomsd[262:3a98d] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, resumed responding
2020-09-21 19:53:41.631 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:53:41.631 Df symptomsd[262:3b6ff] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, not responding
2020-09-21 19:53:41.670 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_RESUMED_RESPONDING           mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:53:41.670 Df symptomsd[262:3b6ff] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, resumed responding
2020-09-21 19:54:06.395 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:54:06.395 Df symptomsd[262:3b7b3] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, not responding
2020-09-21 19:54:07.444 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_RESUMED_RESPONDING           mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:54:07.444 Df symptomsd[262:3ba0a] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, resumed responding
2020-09-21 19:55:14.406 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:55:14.406 Df symptomsd[262:3be3a] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, not responding
2020-09-21 19:55:15.444 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_RESUMED_RESPONDING           mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:55:15.444 Df symptomsd[262:3be3a] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, resumed responding
2020-09-21 19:56:38.495 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:56:38.495 Df symptomsd[262:3c201] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, not responding
2020-09-21 19:56:39.536 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_RESUMED_RESPONDING           mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:56:39.536 Df symptomsd[262:3c201] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, resumed responding
2020-09-21 19:59:44.010 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:59:44.010 Df symptomsd[262:3ccd4] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, not responding
2020-09-21 19:59:44.013 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_RESUMED_RESPONDING           mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 19:59:44.013 Df symptomsd[262:3ccd4] [com.apple.symptomsd:netepochs] recvd wifi dns symptom, server 192.168.1.100, resumed responding
2020-09-21 20:03:55.408 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 20:03:58.412 I  symptomsd[262:4f4] [com.apple.symptomsd:other] [0.000]   261 mDNSResponder    (null) SYMPTOM_DNS_NO_REPLIES                   mDNSR -------- -------- -------- -------- [1 <16 bytes>]
2020-09-21 20:03:58.490 Df symptomsd[262:3d9c0] [com.apple.symptomsd:netepochs] SCDynamicStore config_callback: k: State:/Network/Global/DNS
2020-09-21 20:03:58.490 Df symptomsd[262:3d9c0] [com.apple.symptomsd:netepochs] SCDynamicStore key: State:/Network/Global/DNS, interfaces: {
}

I found the problem and it's a pretty dumb one. I'm using Mullvad VPN which changes the DNS settings whenever I connect to it.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.