Arch-Setup-Script icon indicating copy to clipboard operation
Arch-Setup-Script copied to clipboard

Should unbound echo itself to resolv.conf?

Open funk-on-code opened this issue 1 year ago • 2 comments

Once unbound is installed as the DNS/Resolver, should the script not do something like:

echo 127.0.0.1 >> /etc/resolv.conf

to use it?

Otherwise, if #45 is merged and/or a better solution is found, the server option boots cleanly in both VMs and bare-metal.

funk-on-code avatar Aug 09 '24 07:08 funk-on-code

Doesn't it already do it by itself? I will check later

TommyTran732 avatar Aug 09 '24 22:08 TommyTran732

Nope.

On a server, with systemd-network as the networking option, the generated /etc/resolv.conf has the comment, but not the server - will do a desktop install in an hour or so and confirm there.

funk-on-code avatar Aug 10 '24 05:08 funk-on-code

Okay I just checked. Unbound doesn't need to echo itself into /etc/resolv.conf. If /etc/resolv.conf doesn't have a nameserver and unbound is present, the system defaults to using unbound. You can check this with dig.

Let me know if you still think it should be added for some reason though.

TommyTran732 avatar Oct 11 '24 23:10 TommyTran732