You are not logged in.

#1 2022-06-18 19:30:52

r1amu
Member
Registered: 2020-02-24
Posts: 16

[SOLVED] Configuring default DNS/Do I need resolved?

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

#2 2022-06-18 19:37:26

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Configuring default DNS/Do I need resolved?

Offline

#3 2022-06-18 19:46:49

r1amu
Member
Registered: 2020-02-24
Posts: 16

Re: [SOLVED] Configuring default DNS/Do I need resolved?

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

#4 2022-06-18 20:24:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: [SOLVED] Configuring default DNS/Do I need resolved?

"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

#5 2022-06-19 09:08:02

r1amu
Member
Registered: 2020-02-24
Posts: 16

Re: [SOLVED] Configuring default DNS/Do I need resolved?

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

#6 2022-06-19 11:27:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: [SOLVED] Configuring default DNS/Do I need resolved?

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

Board footer

Powered by FluxBB