Domain Resolver

CentOS 7 resolv.conf make changes permanent

On Linux, Domain resolver configuration is stored in

On Ubuntu, it is a symlink.

You can remove the symlink and create your own file if you don’t want it managed by systemctl. You can see systemctl dns resolver deails with command

Disable systemd-resolved

If you want to use old /etc/resolv.conf, you can disable systemd-resolved

On Ubuntu, NetworkManager will update /etc/resolv.conf, to avoid this, edit

Under [main] section, add

Here is what i have on my PC

To configure systemd-resolvd, see Ubuntu Configure systemd-resolved

Add a Comment

Your email address will not be published. Required fields are marked *