TommyTran732 / Arch-Setup-Script

Setting up Arch Linux with BTRFS, snapshots and full disk encryption including /boot (UEFI only)
Apache License 2.0
45 stars 39 forks source link

Should unbound echo itself to resolv.conf? #47

Closed funk-on-code closed 1 month ago

funk-on-code commented 3 months ago

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.

TommyTran732 commented 3 months ago

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

funk-on-code commented 3 months ago

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.

TommyTran732 commented 1 month ago

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.