Incorrect DNS server added to resolv.conf
I noticed my name resolution going really slow.
Looking at my /etc/resolv.conf an invalid nameserver entry appears to be added :
cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 192.168.1.254
nameserver 8.8.8.8
192.168.1.254
is not listed in nmcli :
enx18dbf2615f44: connected to Wired connection 1
"Realtek RTL8153"
ethernet (r8152), 18:DB:F2:61:5F:44, hw, mtu 1500
ip4 default
inet4 192.168.0.106/24
route4 0.0.0.0/0
route4 192.168.0.0/24
route4 169.254.0.0/16
inet6 fe80::715b:3ace:c9:315a/64
route6 fe80::/64
route6 ff00::/8
vpn0: disconnected
"vpn0"
tun, sw, mtu 1266
wlan0: unavailable
"Qualcomm Atheros QCA6174"
wifi (ath10k_pci), 0A:74:5B:D1:9B:4F, sw disabled, hw, mtu 1500
lo: unmanaged
"lo"
loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
DNS configuration:
servers: 8.8.8.8
interface: enx18dbf2615f44
And it's not in the DHCP response from the server either (192.168.0.1 is the DNS server reported) dhcp-dns.pcapng.
In my enx18dbf2615f44
setup, I disabled the automatic DNS and set Google's DNS.
But going with the automatic DNS produce the same result with 192.168.1.254
as first server and 192.168.0.1
second.