1

I am running Ubuntu server 20.04 on a Raspberry Pi 4 and I am having difficulty updating the DNS entry in resolv.conf. resolv.conf points to the nameserver 127.0.0.53; however, I disabled the systemd-networkd dnsstublistener so I could run my own DNS server. How can I change the nameserver to point to 127.0.0.1 instead?

1

I discovered that my changes were not being applied to resolv.conf because of a symbolic link issue. To fix, I first deleted the file /etc/resolv.conf, which was a symbolic link to /run/systemd/resolve/stub-resolv.conf, and then created a new link to /run/systemd/resolve/resolv.conf.

sudo rm /etc/resolv.conf
sudo ln -s sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.