-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unbound DNS in recursive mode doesn't work through the vpn connection. #515
Comments
Hi, |
Hi, The Dns Server is running on LAN IP Address 192.168.1.100 which is the same computer that initiates the nordvpn connection with the nordvpn client , so I've configured the NordVPN client to set DNS to 192.168.1.100 Oh yes: when I disconnect from nordvpn (with killswitch off) then nslookup and dig return the desired results (in recursive mode) - the moment I turn the nordvpn connection on again, I get the communications error. |
While connected to VPN can you ping/access 192.168.1.100 or it is not reachable at all? |
I can ping the lan while connected to VPN. (using Lan-Discovery or Whitelist subnet 192.168.1.0/24 (whitelisting no longer works in 3.18.3 tho) |
Yes, that's what I wanted to see if you're not affected by #512. |
in conclusion: connected to vpn with unbound dns in recursive mode (killswitch on): nslookup www.peer.be ;; communications error to 192.168.1.100#53: timed out disconnected from vpn with unbound in recursive mode (killswitch off) nslookup www.peer.be Server: 192.168.1.100 Non-authoritative answer: I'm using both Fedora F40 (asahi) and Ubuntu 24.04 as distro's. |
nordvpn settings I can see dns traffic on wireshark from 10.100.0.2 to 192.168.1.100 back and forth. |
I have the exact same issue. Unbound is running on port 5335 locally and turning VPN on results in all DNS results from Unbound to be throwaway. Turning off VPN results in successful resolution from unbound. On VPN when I run dig:
I can add unbound debug logs if it can help in some way. |
Bump. NordVPN became unusable for me around March this year when this issue started. I wouldn't think it's anything with the official app - the issue is happening to me with OpenVPN client as well. I'm using BIND for DNS and running OpenVPN client on the router. Forwarding to public resolvers (E.g. Google DNS) works fine but queries to root/authoritative servers are being refused while on NordVPN. I don't experience any problems when using competing VPN product or without VPN. Here's the BIND error: REFUSED unexpected RCODE resolving 'xyz.zyx.yxz/A/IN': 1.2.3.4#53 On the client side this shows up as a SERVFAIL response. Above is just one example; I get the server log full of this as soon as I switch traffic to Nord. I've contacted their support a couple times, but I was firmly stuck in tier 1. They were just about as helpful as garden gnomes. I'm happy to provide more logs too, if it helps. |
After trying several times I come to the conclusion that unbound dns in recursive mode doesn't work though the vpn-connection. Only when I configure forward zones to e.g. 1.1.1.1 and 1.0.0.1 or google's dns , then the dns-requests work through the vpn-connection. But recursive with vpn-connection is not working. Could this be that nordvpn traffic is blocked to the root dns servers?
A workaround is to run the Unbound DNS server on a separate internet connection without vpn-connection to make it run recursive.
Edit: added unbound.conf
server:
verbosity: 1
interface: 192.168.1.100
port: 53
access-control: 192.168.1.0/24 allow
access-control: 172.20.10.0/28 allow
access-control: 127.0.0.0/8 allow
Tested and reproduced on Ubuntu24.04 and Fedora F40 (asahi)
The text was updated successfully, but these errors were encountered: