Apple Event: May 7th at 7 am PT

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 Best reply

Posted on Dec 16, 2022 7:38 AM

To put it very simply: This is a very normal feature, and it worked in 12.x but does not correctly in 13.x.

And as it (at leas in my case) only happens after the device went to sleep, it would seem common sense that it's not working as designed.


So IMHO it's quite irrelevant whether we're using this to connect to our VPN at home but still want a public DNS for whatever reasons, or if we're stumbling upon this issue in an enterprise environment.

Apple should be grateful that we're bringing this to the public and thus helping to improve their products, but if they prefer to not talk about any potential issues, well...


I find it quite funny that every time someone finds a bug or something like that in an Apple product, someone with thousands of points jumps in to defend Apple. And I wonder if this comment will even make it to the forum, as my last try at a reply was censored for reasons unknown.

Similar questions

87 replies

Dec 16, 2022 5:24 AM in response to f1r3s4l3

f1r3s4l3 wrote:

Because some people don't use VPN for privacy reasons, but because they access a company network through it, and probably only for specific addresses, so you want to use the public DNS for everything else.

But this is a user-to-user support forum for Apple’s consumer products. No one here knows anything about MDM, Jamf, or anything enterprise related. Enterprise users have their own dedicated, paid support staff. If they can’t resolve the issue, they can just call their Apple reps on the phone.


If there is a problem, you’ve found the best place to hide from the people whose job it is to fix those problems for you.

Dec 16, 2022 10:55 AM in response to f1r3s4l3

f1r3s4l3 wrote:

Apple should be grateful that we're bringing this to the public and thus helping to improve their products, but if they prefer to not talk about any potential issues, well...

Why should Apple be grateful when people experience problems and then don't report them? As I said above, this is a user-to-user support forum for Apple’s consumer products. Apple isn't here.


You are describing a problem that sounds like the opposite of what you describe. If I have a VPN connected and my DNS requests go out to an open DNS server, that's a critical, mission-failure of the VPN. However, I'm not even going to bother testing this because I don't want Google tracking my DNS requests, whether I'm using a VPN or not.


I find it quite funny that every time someone finds a bug or something like that in an Apple product, someone with thousands of points jumps in to defend Apple.

There is lots of misinformation being repeated on the internet. The people here are focused on facts and solving problems. If there is a problem with an Apple product, we will say so and offer workarounds. But in the vast majority of cases, the problem is with some 3rd party product.

Dec 16, 2022 11:35 AM in response to etresoft

On 13.1 the current workaround seems to be to not use Cloudflare 1.1.1.1/1.0.0.1 as a DNS secondary which I was doing on my home network as a backup to my single home dns server (using Cloudflare family now). This was noted as a VPN issue at the start of this thread but is not limited to vpn users, which seems to have been missed. Reddit threads were started in regards to Pi-hole use. Anyway I will endeavor to find an answer to satisfy my curiosity. I will try apple support again (got cut off last time) and I have tried wading through mDNSResponder source code but it is quite complex. Hat tip to f1r3s4l3.

Dec 28, 2022 1:13 AM in response to f1r3s4l3

I've just stumbled on this post as our internal DNS does not want to work any more with Ventura, we have always had problems, but now the normal fixes don't help... I'm glad I found this as I know now we're not alone, I'm going to look in to raising this with Apple as we should have a rep, if they ever give me anything useful back I will try to add it here (but I won't hold my breath)

Jan 9, 2023 7:09 AM in response to StockerRumbles

In that case you just confirmed the "workaround". The issue we're all facing is exactly that, as soon as you have a non-private DNS in your config, you hit that bug (if I'm allowed to call it that).

So, good for you, you don't really seem to need that, but for others who have a reason to configure their network like that, we're pretty much lost.

Jan 9, 2023 11:34 PM in response to f1r3s4l3

Yes I just wanted to confirm that the fix appears to have worked for us... But also worth noting, that when I was looking in to this, a Windows user (rare in our ORG) was also having basically the same issues.


We had hoped to design our VPN DNS servers to have some resiliency in case of outage, which is why we had the 1.1.1.1 there as a final destination, but as we saw this caused various issues with the MacOS network stack over the years, and with Ventura at least, it appears to be completely broken


I just hope the scaling group never fails to launch the DNS servers

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.

Jan 26, 2023 2:08 AM in response to hamacardo

And one more piece of information: I've just tried contacting Apple support. As soon as they heard the problem is only visible when connected to the VPN, they said it's not something they can help me with; to quote them: "if you disconnect from the VPN and everything works fine, there's nothing we can do for you".


Way to go Apple!


Advisor suggested contacting my VPN provider (which is pointless because tunnel works great and older MacOS or any other OSes work great) and trying my luck on developer.apple.com

I guess I'll do the latter on the off chance.

Jan 26, 2023 6:47 AM in response to weakcamelsm

It is not just vpn though. I test on my home network with wifi, no vpn. Use my dnsmasq DNS server as primary, then 1.1.1.1 as secondary and cannot ping local names. Lookup is fine. Check /etc/resolv.conf to make sure setting took. Since 13.1 and now 13.2 any other tested secondary works. I test with 1.1.1.2/3, Google, Quad9 as noted in a previous post. So is quick to test by setting the DNS for the active network connection. For my VPN's at work I changed all the secondaries to 1.1.1.2. I'll try apple support again at some point.

Jan 31, 2023 11:51 PM in response to weakcamelsm

weakcamelsm wrote:

And one more piece of information: I've just tried contacting Apple support. As soon as they heard the problem is only visible when connected to the VPN, they said it's not something they can help me with; to quote them: "if you disconnect from the VPN and everything works fine, there's nothing we can do for you".

Then you can ask them why it works fine in macOS Monterey but not in macOS Ventura (as of the current version)?

I just tried yesterday with Monterey 12.6.3 and it was fine, but in Venture 13.2 it's not – the main DNS that gets propagated when connected to the VPN isn't used despite it being listed (when the VPN is connected) as a DNS server to use in:


System Settings -> VPN -> Your Connection -> info-button (i with a circle) -> DNS -> DNS Servers


If I manually add the DNS I want to use (+ button) it works fine. This this isn't needed in macOS Monterey where it works as expected.

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 ID.