Skip to content

How to set DNS Server? ‚Äč

This one can be tricky but basically just add this to configuration.nix:

networking.nameservers = [ "" "" ];


You can put in just one DNS address and it will still work.

If that does not work as expected and you are using NetworkManager for your internet then make sure to add this line.

networking = {
    networkmanager = {
        dns = "none";