So I was testing a router and it added some random IPv6 addresses to all the machines on my network, including my DNS server. Somehow those IPs were broadcasted around as valid DNS servers (not sure how as only the real router sends IPv6 RA packets) but long story short, now all my machines are sending DNS queries to an IP address that doesn't exist.
If I restart
systemctl restart systemd-resolved then
resolvectl still shows these bogus IPs as valid name servers.
They are listed in
/etc/resolv.conf so if I delete them there and restart
systemd-resolved it just adds the bogus IPs back in again.
If I look in the logs with
journalctl --unit=systemd-resolved then it tells me the bogus IPs are operating in "degraded feature mode" but doesn't tell me where it found those IPs to begin with.
Where is it picking up these wrong IP addresses from?? Is there some cache file I need to delete to make it go back to only using the IPs supplied from the IPv6 router advertisements only?