Saturday, 12 November 2022

debian + NetworkManager generate resolve.conf at every reboot

Sadly the NetworkManager overwrite my resolv.conf. To fix I found followings:

$ vim /etc/NetworkManager/conf.d/90-dns-none.conf

[main]

dns=none

$ systemctl reload NetworkManager

Above section disable update NetworkManager overwrite your custom dns resolver.

Now you can add you favorite dns provider like me with Cloudflare:

$ sudo tee /etc/resolv.conf << END
nameserver 2606:4700:4700::1111
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 2606:4700:4700::1001
END

Have nice day...

No comments:

Post a Comment