I'm in a WLAN which is censoring web sites by their DNS server.
As I want not to be censored I use a VPN (OpenVPN, NetworkManager) for all of my traffic.
If I try to resolve a domain, NetworkManager's dnsmasq asks both their DNS server and mine (VPN). Now the censorship depends on which DNS server responds first.
How do I get rid of that? (IMO) There is (also technically) no need to ask their DNS server as the VPN is "on top of" the WLAN.
[Edit] As requested:
- NetworkManager uses dnsmasq.
pgrep dnsmasq -a2766 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d
cat /etc/resolv.confnameserver 127.0.1.1
- I don't use dhclient at all.
pgrep dnsmasq -awhat is in your resolv.conf and do you use dhclient?2766 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d3)nameserver 127.0.0.14) No.