I have a local DNS resolver configuration and I am not sure why my DNS resolvers are switching. Here is my configuration
#cat /etc/systemd/resolved.conf
[Resolve]
DNS=W.X.Y.Z
#FallbackDNS=
Domains=example.com
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#DNSOverTLS=no
#Cache=no-negative
#DNSStubListener=yes
#ReadEtcHosts=yes
#cat /etc/resolve.conf
nameserver 127.0.0.53
options edns0 trust-ad
search example.com test.xxnet.com
But when I see #systemd-resolve --status
Current DNS Server: A.B.C.D
DNS Servers: W.X.Y.Z
A.B.C.D
DNS Domain: example.com
test.xxnet.com
I have 3 questions here:
- why DNS servers are switching even though I used timeout 5 in /etc/resolv.conf?
- where does A.B.C.D come from?
- how to stop switching or only use W.X.Y.Z as a DNS resolver?
Thanks for the support.