VPN / DNS Issues With macOS Ventura

After upgrading MacBook Air M1 to Ventura I noticed that several of our internal business sites, RDP connections and Network SMB folders which require a VPN to access would not resolve, even after a successful VPN connection. and would only work via their respective IP addresses


Usual troubleshooting including...


  • Home router reboots
  • Mac reboots
  • Re-creating VPN connection
  • Different browsers
  • Different VPN account
  • macOS DNS cache clear
  • Switching to a mobile data (tethered) connection and then connecting to the vpn did not resolve


In desperation had to resort to manually editing the HOSTS file

sudo nano /etc/hosts


... which allowed the respective sites, folders and connections to resolve.

It's clear that Apple devs have broken DNS networking stuff which worked in Monterey and before.


Users should not have to manually edit the macOS HOSTS file to use DNS names whilst connected to a VPN in Ventura

MacBook Air 13″, macOS 13.0

Posted on Oct 26, 2022 5:48 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 6, 2023 4:43 PM

Hi,

I have been having this problem also but I just solved it. I actually only joined to post the solution


Indeed the /etc/resolv.conf is over-written props to the user who pointed that out on page 3). For me it was overwritten with an internal 10.x address so obviously DNS was failing.


What is causing the overwrite is after upgrading apple turns on by default limit ip tracking.


01) Go to settings

02) Go to networks

03) Click details next to the network name In my case my wireless

04) Turn off limit ip tracking

05) Try your vpn again


That one thing fixed the automatic overwriting of the conf file.


I work in cloud security arch and while I am a big believer in secure defaults it is obnoxious to roll something like that out breaking people's vpns without some kind of warning.


Good luck to everyone!

Similar questions

89 replies

Oct 29, 2022 5:08 PM in response to ScotKight

As before, with 1.1.1.1 as secondary no love. host lookup works, but ping and others do not resolve. Today I find if I create the file /etc/resolver/mydomain.net and put my primary in the file as "nameserver 192.168.11.10" all works well.


Note that all other secondaries I have tried have worked. Just 1.1.1.1 has the problem. And is fixed with the above solution found on superuser on StackExchange in answer to the question "How to make .local resolve not via mDNS on Mac OS Mohave?"


scutil --dns shows resolver #1 correctly as my nameservers in order from my network settings. mDNS for domain local is second. With the above file present, then resolver #8 is added pointing to the nameserver listed in the file.


This seems like a bug because only 1.1.1.1 has the issue?


I've moved to using 1.1.1.2 for now. But why does 1.1.1.1 act differently, only to be fixed with the above solution?

Mar 31, 2023 6:44 AM in response to hamacardo

We are having a similar issue.


It seems like macOS Ventura (13.3) isn't respecting DNS order. It was choosing our Open DNS server.

This was placed last in the DNS list however it seems that macOS Ventura is choosing that over the others listed.

We identified there was an issue with our Open DNS server but it being listed last why was Ventura using it 1st?


We removed that entry for now until we solve the problem with Open DNS.

Apr 6, 2023 6:50 AM in response to Old Toad

Here are my latest updates...


VP of IT: The issue still is not Apple. It is that we need an internal address to resolve in OpenDNS

VP of IT: Moreover why is OpenDNS even in there when it is not receiving any queries


Manager of ITOps: It is considered bad security practice to put internal entries in public DNS


VP of IT: Correct

VP of IT: OpenDNS should only be when we are external…. Yes?


Manager of ITOps: Therefore we cannot have OpenDNS resolve internal addresses.

Manager of ITOps: The problem IS Apple and not honoring the DNS server order from the DHCP settings.

Manager of ITOps: The OpenDNS servers were added they solely to account for loss of access to internal DNS servers.

Manager of ITOps: It was primarily necessary in offices where there was no on-site domain controller for when the WAN would become unavailable.



Me: As far as Apple “knows” there is no issue with macOS. They wanted to blame our MDM and will not troubleshoot further until we test after removing our MDM. I spoke to Tech1 who is going to remove our MDM and reinstall macOS to rest further. Once that has been completed I will report back to Apple Support.


VP of IT: Stop spinning our wheels with Apple. It does not matter.


Manager of ITOps: Correct, if we are willing to accept that in a network failure, there will be NO DNS resolution in offices w/o an onsite server. Then we should plan on never putting OpenDNS back in the list.


VP of IT: As long as you are fully redundant for internal resolvers then you are okay.


Manager of ITOps: that is the issue, in some offices, we are not fully redundant.


VP of IT: Well then that is more the issue.

VP of IT: DNS should have at least one resolver locally and a backup within our data center

VP of IT: Or we need to rethink the OKTA login process and it calling oktalogin.xxxxx.com



TLDR: We are going to stop using OpenDNS and have redundancy in each office and "ignore" The problem is Apple and that they are not honoring the DNS server order from the DHCP settings.

May 2, 2023 4:55 PM in response to hamacardo

One more person experiencing this problem, chiming in.


I have a dedicated dhcp/dns server running dnsmasq. It was all fine when it offered only itself as the dns server. When I added a secondary dns public server to the list of dns servers offered to its dhcp clients, all of sudden MacOS 13.3.1 failed to resolve address when using command line utilities like "ping" and "ssh" would not work with local domain names. Diagnostic utilities like "nslookup", "dig", and "scutil -r" would work. Chrome and Safari also work. My older macs, with no unsupported OS's, all worked fine. My windows computers worked fine. My Chromebooks worked fine. The only problem is with my MacOS 13.3.6 system.


I resovled it by adding a /etc/resolver/lan, where "lan" is the my local network doman name", and declared the local name server in that resolver file. But hardcoding the dns like that defeats the purpose of using dhcp to distribute the name server address.

May 6, 2023 12:38 AM in response to hamacardo

Having MacOS M2 with 13.3.1, I have (I had) the same issue with all VPN connections (regardless the system used, at least with SonicWall, Fortinet, WatchGuard, Ivanti).


I found a quite dirty but worky solution: after the connection being established, and the /etc/resolv.conf being updated, I explicitly set the DNS back to something public.


For example:


networksetup -setdnsservers "Wi-Fi" 8.8.8.8


That did the thing for all aforementioned VPN clients.

Oct 28, 2022 7:07 AM in response to hamacardo

When the problem begins, open up a terminal and see if this command shows your DNS entries::

scutil --dns



Basically MacOS is a bit weird about name servers. It is not simple "here are some resolvers" and my bet is that there is an API or a deprecated resource in use that means the DNS is not being updated appropriately or the VPN providers are not feeding the appropriate information.


You may see a number of entries there, but the important ones are the resolvers and the domains associated. If it is pointing at itself, something isn't right and I recommend contacting apple support. DNS issues have been reported in various placed throughout the Ventura beta and evidently continue.

Oct 31, 2022 12:43 AM in response to abitgroggy

I'm especially seeing this, after my Mac has gone to sleep, after wakeup it refuses to find hosts behind the VPN.

Switching Wi-Fi completely off and on again usually does the trick, sometimes a reboot is needed.

I had 8.8.8.8 set as a tertiary DNS, have now removed this to see if it changes anything.

So, not only 1.1.1.1 has the issue, but 8.8.8.8 as well.

And: i definitely never had this on Monterey, it started with Ventura.

Jan 20, 2023 1:49 AM in response to hamacardo

In my case, after connecting to vpn through tunnelbrick, ssh won't resolve host an internal host.

My workaround is to switch my current wifi to another one (I had two wifi networks at home), that would seem to "trigger" something internally in osx, while leaving my vpn connected, then my ssh would resolve host again! Note that turning wifi off and on doesn't work, but switching one would "fix" it. Strange.

Dec 5, 2023 11:25 AM in response to hamacardo

I have struggled for the last 8 months with this DNS issue on Ventura 13.1-13.6.2. Local DNS IPs is required for internal servers, but adding any secondary fail-over external DNS IPs would cause failures after reboot or wake. I tried every combination of every posted idea and solution I could find. Nothing stuck for more than a few days. Out of options and on a whim, I tried adding a zero before the final digit of the last octet. This has been working successfully for over 2 months. Hopefully this simple trick works for you.


fail ---> success!

1.1.1.1 ---> 1.1.1.01

9.9.9.9 ---> 9.9.9.09

8.8.8.8 ---> 8.8.8.08

8.8.4.4 ---> 8.8.4.04



DNS is one of the most critical pieces needed to use a computer today. Come on Apple, DNS needs to be bullet-proof and prioritized before add-on features.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

VPN / DNS Issues With macOS Ventura

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.