How to turn off systemd-resolved DNS? (related to "DNS delay.....")
Chris Green
cl at isbd.net
Wed Apr 1 17:48:15 UTC 2020
I'm wondering if simply turning off systemd's local DNS (in
particular the local DNS cache) would fix my initial slow DNS look-up
problem. As I have a dedicated DNS server on my LAN look-ups are fast
even without a local cache.
I tried changing /etc/systemd/resolved.conf to have
"DNSStubListener=no" but that simply broke DNS altogether!
So how is one supposed to turn off systemd's local DNS and use an
'external' DNS server? I shouldn't have to put the DNS server's IP
address anywhere because I'm using DHCP and the DHCP server provides
the client with the DNS server IP as part of its response to the DHCP
request.
I see that systemd creates a file /run/systemd/resolve/resolv.conf
which has:-
nameserver 192.168.1.4
search zbmc.eu
This is exactly what I want /etc/resolv.conf to link to but it's not
clear how one tells systemd to use this file instead of the default.
--
Chris Green
More information about the ubuntu-users
mailing list