this post was submitted on 26 Aug 2025
16 points (90.0% liked)

Linux

58191 readers
847 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

[Edit: this question came out of my confusion. I thought Unbound could somehow substitute DNS servers (like CloudFlare), but it can't. Apologies for my ignorance.]

I've often heard about Unbound, and the possibility of using it as a DNS resolver on my laptop. So, to be clear, not as a DNS resolver in a local network; just in a single machine, also because I'd like to use it no matter where I bring my laptop.

The instructions given in the second link above seem quite complete. Does anyone here have other tips or experiences to share? I'm with Ubuntu on a Thinkpad.

Cheers!

top 12 comments
sorted by: hot top controversial new old
[–] tvcvt@lemmy.ml 5 points 2 weeks ago (1 children)

You may already have a local dns caching mechanism on your computer. I think by default Ubuntu uses systemd-resolved (it does on my desktops anyway). If you check dig it’ll show lookups coming from 127.0.0.53. With that in place, your local machine is caching lookup results and anything it doesn’t know, it’s forwarding to the network’s resolver (which it gets via dhcp, usually).

[–] pglpm@lemmy.ca 1 points 2 weeks ago (1 children)

Thank you for this comment. So Unbound does only DNS caching, without really resolving? I think I've completely misunderstood its purpose.

[–] tvcvt@lemmy.ml 4 points 2 weeks ago (1 children)

Unbound can query the root dns servers, but it’s also commonly used as a recursive resolver, which just uses a server upstream, similar to systemd-resolved. I use unbound network-wide, but I have it querying 9.9.9.9 to take advantage of their filtering.

[–] pglpm@lemmy.ca 1 points 2 weeks ago

Now I understand, thank you for the explanation!

[–] BlackEco@lemmy.blackeco.com 3 points 2 weeks ago (1 children)

I use unbound as an upstream resolver for Pi-hole, not directly on my machines. Be aware that resolving new domains can incur some delay (about 1s), but once cached, it's pretty quick, even for additional entries on the same domain.

[–] pglpm@lemmy.ca 2 points 2 weeks ago

Thank you for the warning! I'll know it's expected then :) In my case I'd like to use it more or less independently of the network I'm in, that's why I'd like to take a single-machine approach.

[–] eldavi@lemmy.ml 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

there's nothing wrong with not using systemd-resolvd, but i'm curious as to why for a laptop; wouldn't infrequent caching make it slow?

[–] pglpm@lemmy.ca 1 points 2 weeks ago (1 children)

I'm starting to think that I've misunderstood what Unbound does. I thought I'd be a replacement for a DNS resolver (like CloudFlare). But from the replies here I'm starting to think it isn't?

[–] eldavi@lemmy.ml 2 points 2 weeks ago

oic, i was under the impression that you wanted it use it on your laptop; not as a service like cloudfare.

[–] Cyber@feddit.uk 2 points 2 weeks ago (1 children)

It's worth putting a single caching DNS resolver in the network for everything to use, but I don't see an advantage on a single device.

The first DNS query will take as long as it takes, then the tiny few mSec it saves on subsequent "1st" queries for everyone else makes the difference

Also, but blocklists in that DNS Resolver and you'll improve your entire network from trying to lookup crazy sites.

[–] pglpm@lemmy.ca 2 points 2 weeks ago (1 children)

Thank you, I see the advantages of a network approach. In my case it's just two laptops in my network, and I'm also thinking of the case when I'm using the laptop in some other networks.

[–] Cyber@feddit.uk 2 points 2 weeks ago

If you only have 2 laptops and they are both going to search externsl DNS, then there's probably still no point in local DNS

To refer to each other - presuming they have static IPs - just update their /etc/hosts with the other device's IP address and that will speed things up