-
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
DNS setting has no effect since Version 3.17.4 #501
Comments
hi, |
@mariusSincovici : hi
|
Hi, |
Hi, |
Hi, @jkrasinger, could you give us more details: what linux distro you are using? and how you determine that |
Hi, OS: (K)ubuntu 24.04 with ZFS Until Version 3.17.3 i was working with the above nordvpn settings and my local DNS answered my requests for my local domain (i.e. ping server.my.domain.com). Since Version 3.17.4 my DNS request where no longer resolved with the existing nordvpn settings. Restoring Version 3.17.3 and all is again working for me. Also nslookup is working fine with Version 3.17.3, since Version 3.17.4 it fails with "** server can't find service1.xxx.yyy.com: NXDOMAIN" I have not traced the DNS request until now, but if needed i can do so tomorrow. |
With this configuration using ip route ip rule and iptables you can contact your local DNS through marking dns packets in iptables and source-nat them to the right interface. cat /home/sprokkel/control-traffic.sh #!/bin/sh #sudo modprobe iptables CLEAR ALL PREVIOUS CONFIGsudo ip route del default via 192.168.1.100 dev end0 table end0_table Create the routing tables for iproute2echo "1 end0_table" | sudo tee -a /etc/iproute2/rt_tables Assign the default routes for the new tables:sudo ip route add default via 192.168.1.100 dev end0 table end0_table Set Up IP Rules for DNS Trafficsudo ip rule add fwmark 1 table end0_table Flush existing rulessudo ip route flush cache Use iptables to Mark DNS Trafficsudo iptables -t mangle -F Setup the NAT table to SOURCE-NAT DNS Trafficsudo iptables -t nat -F Show ip route table listip route list table all | grep _table | grep end0 Show ip rule table listip rule list Show the iptables mangle tableecho "==================" Show the iptables nat tableecho "===============" Show the routing tableecho "=============" #EOF INFO: end0 is my LAN network card. 192.168.1.100 it it's IP - address. (depending on your configuration you need to tweak these settings.) I automatically run this script every time the VPN-connection goes up by adding a 01-control-traffic file to /etc/NetworkManager/dispatcher.d/ sprokkel@mac-mini ~ $ cat /etc/NetworkManager/dispatcher.d/01-control-traffic INTERFACE=$1 if [ "$INTERFACE" = "nordtun" ] && [ "$STATUS" = "up" ]; then # Replace nordtun with your vpn interface name then restart NetworkManager. Hope this helps. |
I can confirm this is also happening for me. I'm running nordvpn on Manjaro Sway from the AUR repo binary:
Here, you can see in series as I show the nordvpn settings when it is disconnected, connect, then
|
@sprokkel78 : Thanks for your example to bring the local DNS back to life. I did not make a test for this until now, but I'm sure that your script/settings are working, but, however, it would be of great interest to me that the “set DNS” setting contained in NordVpn works. This has already worked and was then made ineffective with an update or no longer effective due to an error. I also officially reported a bug a few months ago, but have not yet received a solution. |
Hi, @acud At the moment, while you're connected to the VPN the application will always set some DNS servers and not use the OS settings, it is not possible to disable this. |
@jkrasinger A new app version is available 3.18.4 which contains some fixes for allowlists. |
@mariusSincovici Thank you for this information, but this new Version has not changed anything and i can reproduce this error. Perhaps the following output from the "resolvectl" command show something interesting. resolvectl on Version 3.17.3
resolvectl on Version 3.18.4
I can see a difference in the "DNS Domain" line on Nordlynx Link between these Versions. I can not interpret for myself, but it may be a reason for failing. |
Yes, actually on version 3.17.3 there was a bug that resulted in DNS leaks, so having |
@mariusSincovici Done, but nothing changed. Here my settings:
Test:
|
Thanks for testing. |
Here the output of the command "nslookup nas2.xxx.yyy.com 192.168.89.1" while VPN active:
|
Thanks, I've registered an issue on our side. Until then, there might be a hackish "workaround"(at least it worked for me), but this needs to be run every time DNS fails(because sometimes NordVPN app reconfigures the DNS in the background automatically). After you're connected to the VPN configure the DNS on the tunnel interface and restart systemd-resolver, e.g.: |
@mariusSincovici Thank you for your help and that you filed an issue. I tested your workaround and it's working. I just made another test: Regards Jonny |
That also fixed it for me, NordVPN Version 3.18.3 on Mint22: Thanks MariusSincovici, you're a star Paul |
For me it is necessary to use my local DNS server even when using the VPN. Since version 3.17.4, the "nordvpn set DNS" setting has no effect and my local DNS is no longer used.
The text was updated successfully, but these errors were encountered: