I am running Ubuntu 21.10 Desktop. For my work, I have to jump between different VPNs, and in the past I had to adjust DNS
nameservers for some of them, too. I did this just with editing my /etc/resolv.conf
file.
I do not need this anymore, but somehow this nameserver IP is still stored somewhere in resolvconf
's configuration. And I was not able to find out where resolvconf
is storing these IPs.
For example, my current /etc/resolv.conf
:
nameserver 1.1.1.1
nameserver 8.8.4.4
nameserver 1.0.0.1
If I run resolvconf -u
this changes the file to:
nameserver 10.12.1.1
nameserver 1.1.1.1
nameserver 1.0.0.1
Where the first is the IP I would like to get rid of completely.
While resolvonf -l
is listing:
resolvconf -l
# resolv.conf from <my current connected VPN>
nameserver 1.1.1.1
nameserver 1.0.0.1
I don't have any more custom configuration in /etc/network/interfaces
:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
resolvectl status
only contains two items with DNS servers:
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
Current DNS Server: 1.1.1.1
DNS Servers: 1.1.1.1 8.8.4.4 1.0.0.1
Link 2 (wlp59s0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 8.8.8.8
DNS Servers: 8.8.8.8
DNS Domain: --
My resolvectl version:
$ resolvectl --version
systemd 248 (248.3-1ubuntu8.2)
+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP -LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
resolconf version:
$ resolvconf --version
openresolv 3.12.0
Where is the "resolvconf database" or cache, where is resolvconf -u
getting this IP from? How do I reset it to "factory settings"?