You are not logged in.
Hi guys,
I'm a bit lost. I just installed Arch and I'm trying to set my DNS to quad9. And suprisingly the WiKi isn't helping much (I might be missing something).
I installed and enabled Network-Manager as I'm most fammiliar with it. But I do not know what to do next. I know that can't edit /etc/resolve.conf (and I do not want to set it as imutable, that just feels hacky af).
I found this, but I do not have resolved running, and networking seems to be fine so do I need it?
Just to clarify: I have a laptop, thats why I'm trying to set it "globaly" for all possible connections
Last edited by r1amu (2022-06-19 09:01:19)
Offline
Offline
Oh I totally missed that (thank you!)
I still want to ask whats the deal with resolved? Do I need it when I'm using Network Manager? Because from what I have found it looks like they are normally used together
Last edited by r1amu (2022-06-18 19:47:07)
Offline
"No"
resolved is a caching DNS stub resolver and part of systemd-networkd. NM meanwhile defaults to resolved but you can just as much use the glibc resolver.
If you have some other locally caching resolver (eg. in your routermodemcombothingy) that's pointless.
Otherwise there's eg. also dnsmasq that can serve the same purpose.
To get an idea whether you'd benefit from a local cache try "dig heise.de" (domain you probably never resolved, otherwise pick a different domain) and then immediately again "dig heise.de"
Compare the query time - if there's a steep drop, there's some cache in use somewhere.
But in any event you'd otherwise just use the public DNS directly on each query - that works, but is less performant.
resolved has some questionable design choices, most importantly its fundamental behavior depends on the filetype of /etc/resolv.conf - make sure to read the wiki
Offline
Thanks for the explanation.
I am now pretty sure that I currently do not have cache running, the results with "dig" were kinda inconclusive. But resolvectl just outputs error that the service isn't running.
Offline
Output of "dig"?
(If the configured DNS isn't in the LAN but 8.8.8.8 or so, there's no local caching because you don't use a local DNS)
Offline