Unable to connect to the Internet

What happens in Windows stays in Windows.

When you connect using your NordVPN account the resolver will change - and when you disconnect the resolver will be reset to your router.

If you want your system to use other nameservers than your ISP provided (through the router) you will have to create a drop-in config for the resolver to use. Just like it is possible to change the fallback servers.

Example:

sudo mkdir -p /etc/systemd/resolved.conf.d
sudo touch /etc/systemd/resolved.conf.d/dns_servers.conf

Then edit the file (eg. using the micro or nano editor) and insert the following content - adjust as necessary

[Resolve]
DNS=nameserver_ip_1 nameserver_ip_2
Domains=~.

Read more in the Arch Wiki systemd-resolved - ArchWiki

I was mistakenly looking at DHCP in my router.

I know this is beyond the scope of the original question, but maybe helpful for others… I created the conf using OpenDNS IP Addresses:

[Resolve]
DNS=208.67.222.222 208.67.220.220
Domains=~.

Then I cleared the browser cache and flushed DNS cache using:

$ sudo systemd-resolve --flush-caches
$ sudo resolvectl flush-caches

After reboot:

[mike@mbbrady ~]$ resolvectl status
Global
           Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
    resolv.conf mode: stub
  Current DNS Server: 208.67.222.222
         DNS Servers: 208.67.222.222 208.67.220.220
Fallback DNS Servers: 9.9.9.9#dns.quad9.net 8.8.8.8#dns.google
                      2620:fe::9#dns.quad9.net 2001:4860:4860::8888#dns.google
          DNS Domain: ~.

Link 2 (enp34s0)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.1.1
       DNS Servers: 192.168.1.1 2600:4040:2017:6c00::1
        DNS Domain: myfiosgateway.com

I used:

instead of:

ups - sorry - typo - I meant -p :man_facepalming:

Apart from assigning a static IP/24 or changing your routers DNS configuration to use specific servers - there is no way of avoiding the DHCP assigned DNS from the router.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.