DNS forwarding for remote domains

I try to get DNS resolving working for domains on remote, routed LAN’s, by forwarding the queries for those domains to their respective DNS servers.

On Windows Server I would configure a Conditional Forwarder (or Forward Lookup Zone). On SME Koozali I would issue the following:
db domains set domain-remote Nameservers <a.b.c.d>
signal-event domain-modify

Is there a way to accomplish the same on Nethserver?

NethServer uses dnsmasq. It should be possible with a custom template.

Create a custom template for /etc/dnsmasq.conf:

mkdir -p /etc/e-smith/templates-custom/etc/dnsmasq.conf/

Create /etc/e-smith/templates-custom/etc/dnsmasq.conf/90forward with the domains you want to forward to a specific DNS like:


Apply config:

signal-event nethserver-dnsmasq-save



Thank you! That solved the issue.

1 Like