DNS problem after connecting VPN

I am using a VPN to connect to the company's private network. After connecting to the VPN, my primary DNS changes to the private DNS. This causes an issue with accessing the web. When I ping google.com, I receive an error, but when I ping 4.2.2.4, it responds. However, I can successfully ping the private network DNS.


The private network's range is 192.168.8.0/24, and the DNS server is lab-windows.nsx.local.



 % scutil --dns   
DNS configuration


resolver #1
  search domain[0] : google.com
  nameserver[0] : 192.168.8.2
  flags    : Supplemental, Request A records
  reach    : 0x00000003 (Reachable,Transient Connection)
  order    : 100000


resolver #2
  nameserver[0] : 8.8.8.8
  flags    : Request A records
  reach    : 0x00000002 (Reachable)
  order    : 200000


resolver #3
  domain   : local
  options  : mdns
  timeout  : 5
  flags    : Request A records
  reach    : 0x00000000 (Not Reachable)
  order    : 300000


resolver #4
  domain   : 254.169.in-addr.arpa
  options  : mdns
  timeout  : 5
  flags    : Request A records
  reach    : 0x00000000 (Not Reachable)
  order    : 300200


resolver #5
  domain   : 8.e.f.ip6.arpa
  options  : mdns
  timeout  : 5
  flags    : Request A records
  reach    : 0x00000000 (Not Reachable)
  order    : 300400


resolver #6
  domain   : 9.e.f.ip6.arpa
  options  : mdns
  timeout  : 5
  flags    : Request A records
  reach    : 0x00000000 (Not Reachable)
  order    : 300600


resolver #7
  domain   : a.e.f.ip6.arpa
  options  : mdns
  timeout  : 5
  flags    : Request A records
  reach    : 0x00000000 (Not Reachable)
  order    : 300800


resolver #8
  domain   : b.e.f.ip6.arpa
  options  : mdns
  timeout  : 5
  flags    : Request A records
  reach    : 0x00000000 (Not Reachable)
  order    : 301000


DNS configuration (for scoped queries)


resolver #1
  search domain[0] : google.com
  nameserver[0] : 8.8.8.8
  if_index : 12 (en0)
  flags    : Scoped, Request A records
  reach    : 0x00000002 (Reachable)


resolver #2
  search domain[0] : lab-windows.nsx.local
  nameserver[0] : 192.168.8.2
  if_index : 20 (ppp0)
  flags    : Scoped, Request A records
  reach    : 0x00000003 (Reachable,Transient Connection)

% ping 4.2.2.4
64 bytes from 4.2.2.4: icmp_seq=0 ttl=56 time=36.773 ms

% ping google.com
ping: cannot resolve google.com: Unknown host

% ping lab-windows.nsx.local
64 bytes from 192.168.8.2: icmp_seq=0 ttl=127 time=86.280 ms

% dig google.com


; <<>> DiG 9.10.6 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 26005
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1


;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;google.com.			IN	A


;; Query time: 1378 msec
;; SERVER: 192.168.8.2#53(192.168.8.2)
;; WHEN: Thu Jul 20 11:14:43 EEST 2023
;; MSG SIZE  rcvd: 39

MacBook Air 13″, macOS 13.4

Posted on Jul 20, 2023 1:18 AM

Reply

Similar questions

There are no replies.

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.

DNS problem after connecting VPN

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