DNS resolution failures in macOS 26 & 27

Sporadically (once every week or two) on macOS 26, domain name resolution will just abruptly stop working. But, it gets worse. I recently updated to macOS 27.2, and now the problem occurs multiple times an hour.

That is, name resolution fails if done through Apple’s libraries – through dig or nslookup it continues to work just fine, which means things like ping also work just fine, but e.g. curl and Safari do not.

I don’t know what the root cause is – obviously a severe bug somewhere in Apple’s DNS software – but surprisingly the usual network hang-ups go-to solutions don’t work (killing mDNSResponder, “Safari Networking” et al, etc).

I have found a couple of workarounds, though:

  • Change the DNS settings of any active network interface (I don’t think it has to be the primary one, but I haven’t tested extensively), and then revert them. That seems to be enough to kick whatever’s broken, into a functional state. But only for a little while.
  • Or, sudo killall -9 configd. Again, only a temporary reprieve.
  • Or, manually specify DNS settings for the network interface(s), instead of using the values from DHCP. In my case, macOS 27.2 is somehow getting a valid IPv4 address for the local DNS server, but also an invalid IPv6 address, “::”. Because it strictly prioritises IPv6 for DNS, it always tries “::” first. And sometimes – but not all the time – it gets itself into a hung state when trying to handle that invalid IPv6 address. This seems to be a permanent solution (albeit fragile against network changes, and tedious to do if you use a lot of different networks).

I’ve been seeing this issue on multiple completely independent Macs and networks for many months now – and now, as noted, it’s a thousand times worse in macOS 27 – and it’s one of those super disappointing bugs because (a) it’s a regression, vs macOS 15 Sequoia & earlier, and (b) it’s such a frustrating and serious effect, and yet Apple are either disinterested or incapable of fixing it.

6 thoughts on “DNS resolution failures in macOS 26 & 27”

  1. I had the same issue. For a second time, DNS stopped working. The usual `sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder` didn’t work. Found this page on my phone, and `sudo killall -9 configd` worked indeed. Thank you!

    Reply

Leave a Comment