Multiple External DNS servers

NethServer Version: 7
Module: Network / Configure DNS servers


the page allows just two DNS servers. Is there any options to add more DNS servers? In my case I use several free / “non censored” DNS from

However some servers might by temprary down. I would like to enter a priorisation list in nethserver. Is there any option to do so? Would that work via

config show dns

If so, what would be the command?



db configuration setprop dns NameServers a.b.c.d,b.c.d.e,c.d.e.f,d.e.f.g,

If I try so, the first two Server IPs are shown on the web interface. What ist the correct signal-eventcomment to restart the service?

I guess (and I hope) these settings are different from dhcp provided settings - here I want the dhcp clients to recieve the ip of Nethserver as the dns only

Thank you and best regards

It shoulld be possible since the DNS servers is just a comma separated list of IP addresses of those DNS servers.
Maybe the “e-smith db terminal guru’s” in this forum can give a hint?

Yes, it works. You have to apply the new config with signal-event nethserver-dnsmasq-save.

You may check if the new config is used in /var/log/messages:

[root@myserver ~]# cat /var/log/messages | grep "dnsmasq"
Jul  1 11:11:42 myserver dnsmasq[5756]: using nameserver
Jul  1 11:11:42 myserver dnsmasq[5756]: using nameserver
Jul  1 11:11:42 myserver dnsmasq[5756]: using nameserver

Yes, they are:

WORKS, thank you

1 Like

Orthogonal to this thread, but why doesn’t Neth act as its own DNS resolver? That’s how its ancestor behaved, and it should completely avoid the privacy issue some folks see with DNS.

Like use as DNS on Nethserver?

I think it’s because the nameservers under “Network/DNS servers” are used as upstream DNS servers in dnsmasq.

Is there a difference on a Nethserver in using the DNS server directly or dnsmasq forwarded?

I suppose that’s how it would be set.

SME (Neth’s ancestor) acts as its own DNS resolver, and provides DNS to its LAN clients. It resolves DNS queries by directly querying the authoritative DNS servers for the domains in question, caching the results according to their TTL. It doesn’t use your ISP’s DNS servers, or Google’s, or, or, or… It’s smart enough to not need them. This should be a recipe for robust DNS resolution (as you’re asking the servers who are in the best position to give accurate answers), and it should also avoid the privacy concerns that resulted in OP’s question (because your DNS queries aren’t going through a single point of logging).

This has been SME’s behavior since before it was SME, but Neth has changed it. I assume the change was deliberate, but wonder why the change was made. Edit: FWIW, pfSense also works this way.


I found a feature request where unbound is recommended but it may be much effort to replace dnsmasq: