DNS search failing when DNS server is on remote LAN

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
kbro
OpenVpn Newbie
Posts: 1
Joined: Mon Jul 03, 2023 9:42 pm

DNS search failing when DNS server is on remote LAN

Post by kbro » Mon Jul 03, 2023 9:59 pm

I'm using an ovpn configuration generated by a Ubiquitu EdgeRouter that works fine on my 2016 Mac Pro running macOS Monterey 12.6.6 using TunnelBlick. When I load it into the OpenVPN Connect client (Version 3.4.2 (4547)) the connection comes up fine but DNS lookups for names on the remote LAN are failing. This is unexpected because the EdgeRouter is configured to send both the DNS server address and the domain search list in the DHCP response. Looking at scutil --dns I see that this information has been incorporated but not at the top of the list of resolvers:-

Code: Select all

% scutil --dns
DNS configuration

resolver #1
  search domain[0] : ht.home
  nameserver[0] : 194.168.4.123
  nameserver[1] : 194.168.8.123
  if_index : 4 (en0)
  flags    : Request A records
  reach    : 0x00000002 (Reachable)

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

resolver #3
  domain   : mydomain.co.uk
  nameserver[0] : 192.168.10.254
  flags    : Supplemental, Request A records
  reach    : 0x00000002 (Reachable)
  order    : 101400
Resolver #1 is showing the details associated with my Virgin Media Hitron modem/wifi/router and this is where nslookup directs its requests.

What do I need to do to get DNS working properly? It seems a bit of a fundamental thing to not work in a VPN client, so I guess I've done something wrong.

Post Reply