Feature #2717

DNS forward

Added by Filippo Carletti about 6 years ago. Updated almost 4 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:~FUTURE


This feature will permit to define DNS zones (domain names) served by different resolvers (dns).
As an example, figure a company having a DNS server resolving internal network names (mycompany.local) at ip address
The DNS forwared entry will list mycompany.local with DNS equal to

Technically, dnsmasq will forward requests for myhost.mycompany.local to instead of the configured internet dns server.

Another usage scenario:

The web gui could also offer the omnipresent Description field.

Related issues

Related to NethServer 6 - Enhancement #3054: Reverse dns fails if an internal DNS is configured CLOSED


#1 Updated by Filippo Carletti over 5 years ago

  • Related to Enhancement #3054: Reverse dns fails if an internal DNS is configured added

#2 Updated by Filippo Carletti over 5 years ago

From man dnsmasq: -S, --local, --server=[/[<domain>]/[domain/]][<ipaddr>[#<port>][@<source-ip>|<interface>[#<port>]]

              Specify IP address of upstream servers directly. Setting this flag does not suppress reading of  /etc/resolv.conf,
              use  -R to do that. If one or more optional domains are given, that server is used only for those domains and they
              are queried only using the specified server. This is intended for private nameservers: if you have a nameserver on
              your  network  which  deals  with names of the form xxx.internal.thekelleys.org.uk at then giving  the
              flag -S /internal.thekelleys.org.uk/ will send all queries for internal machines  to  that  nameserver,
              everything  else  will  go  to  the servers in /etc/resolv.conf. An empty domain specification, // has the special
              meaning of "unqualified names only" ie names without any dots in them. A non-standard port  may  be  specified  as
              part  of  the  IP  address  using a # character.  More than one -S flag is allowed, with repeated domain or ipaddr
              parts as required.

#3 Updated by Filippo Carletti almost 5 years ago

I'm doing something related to this feature request on my mail server. I'm directing queries for nethesis.it to our internal dns and all other queries to a local resolver.
Also, reverse queries are sent to the internal dns.
Here's the custom template:


I think we could build the reverse for class a/b/c networks automatically if the dns ip is in the same network of nethserver.

#4 Updated by Giacomo Sanchietti almost 4 years ago

  • Status changed from NEW to CLOSED
  • % Done changed from 0 to 100
  • Resolution set to REJECTED

This feature will not be implemented in NS 6. If needed, please reopen it for NS 7.

Also available in: Atom PDF