Ask Different Asked by nick2k3 on October 30, 2021
I am using wireguard Application to establish a VPN between my Mac running (Catalina 10.15.6) and my home.
At home I run two RPi:
The wireguard configuration i am using specifies the use of the Pihole as DNS):
[Interface]
PrivateKey = [private_key]
ListenPort = [public_port]
Address = 10.13.14.3/32
DNS = 192.168.178.120
[Peer]
PublicKey = [public_key]
AllowedIPs = 192.168.178.0/24
Endpoint = [endpoint hostname]
The same configuration is in use on all my devices (iOS, Windows 10 etc) and I can always use the specified DNS to resolve all the domains.
Under OSX instead using that DNS is hit or miss:
nslookup
to specify 192.168.178.120 as a server and correctly query for both external and internal namesSo I am asking for help on what to do to diagnose the problem further.
DNS resolution on Mac seems really strange to me to be honest.
This is a known problem in WireGuard / OSX:
matchDomains=[“”] doesn’t do what the documentation says. Specifically, DNS servers are not used if allowed IPs isn’t 0.0.0.0/0.
For now, I am just manually setting DNS from a script:
sudo /usr/sbin/networksetup -setdnsservers Wi-Fi 1.1.1.1
Looks like Tunnelblick is doing scutil manipulations for openvpn (https://github.com/Tunnelblick/Tunnelblick/blob/master/tunnelblick/client.2.up.tunnelblick.sh) -- which is working on my mac
Answered by Luca Gibelli on October 30, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP