Forwarded domains

DNS and DHCP → Forwarded domains lists the domains the resolver does not ask the internet about, but the servers you name. The typical case is an Active…

What it is for

DNS and DHCP → Forwarded domains lists the domains the resolver does not ask the internet about, but the servers you name. The typical case is an Active Directory domain: the public resolver does not know ad.johnsmith.test, its domain controller does. In the example company, headquarters forwards ad.johnsmith.test to the domain controller dc1.ad.johnsmith.test (192.168.10.10), on the LAN, with the comment “Domain controller (dc1)”. The same goes for a domain controller at another site, reached through a VPN. You can also forward a reverse zone (for example 10.168.192.in-addr.arpa), so that the reverse lookup of that network’s addresses goes to the same server.

The same goes for an Argos EDON Krios created: once the first-run setup hands it its NICs, the appliance resolves names with its own resolver, through the WAN, and no longer with the DNS server of the network the virtual machine was born in. If some internal names of that site are answered only by its own server (a “split horizon” DNS, which gives an internal address for the same name), add them here, forwarded to that server.

Each entry applies to the domain and to all the names under it.

Forwarded domains with the Active Directory domain of headquartersForwarded domains with the Active Directory domain of headquarters
Forwarded domains with the Active Directory domain of headquarters

How the page is laid out

The block has “Reload” in its bar and, at the far right, “Add a forwarded domain”. Below the explanation come the notices that apply and the list: for each domain the servers and the comment, the state (“Enabled” or “Disabled”) and the “Edit the forwarded domain” and “Remove the forwarded domain” buttons.

If the appliance is linked to an EDON Atlas with a domain, Atlas’s domain (in the example corp.johnsmith.test) appears at the top, read-only, with the note “managed by the Atlas link”.

Field What it does Rules
“Domain” The domain to forward required; without the final dot; not already forwarded
“Active” Off, the domain goes back to being resolved on the internet like the others on by default
“Servers” The addresses of the servers to ask required; 1 to 4 IPv4 addresses separated by commas, asked in turn; not the loopback, nor the same address twice
“Comment” A note at most 128 characters

The buttons are “Cancel” and “Add” (or “Save”). Saving is immediate: the resolver is updated from the cached copies, without downloading any list. There can be at most 32 forwarded domains.

Why Active Directory needs them

With an Active Directory domain, forced DNS on its own breaks two things for the clients that reach the domain controller through the appliance (from another zone or from another site): the resolver does not know whom to ask about the domain, and Windows PCs can no longer register their own name with the domain controller, because they do it with a DNS update sent directly to the domain controller, which the redirection would take to the appliance instead. The PCs on the same network as the domain controller (in the example, the LAN) talk to it directly, without going through the appliance. Forwarded domains solve both problems:

  • the resolver passes the domain’s queries to the servers named;
  • in the zones with forced DNS, the queries addressed to those servers are not redirected: the Windows PC talks to its domain controller, and the traffic goes through the zones’ forward rules like any other. When there are forced zones the block reminds you of this (“In the zones with forced DNS, queries addressed to these servers are not redirected to the appliance…”), and saving answers “Forwarded domain saved — apply the firewall: forced DNS leaves its servers alone”. Apply and confirm within 60 seconds.

Other things to know:

  • Forwarded domains work only with DNS protection on; if it is off the block says so (“DNS protection is off: the appliance resolves nothing, so the forwarded domains have no effect until it is switched on.”).
  • The queries to the servers of the forwarded domains always travel in clear text on port 53, even with DNS over TLS on: a domain controller does not speak TLS.
  • The server must be reachable from the appliance: at headquarters on an internal network, from another site through a VPN (see VPN). The queries leave from the appliance: the domain controller’s DNS must accept them from the address the appliance uses to reach it.
  • The Local DNS records are more specific and win, for their exact names, even inside a forwarded domain.

The complete scenario, with the DHCP relay to the site of the domain controller, is in Clients of a remote Active Directory domain.

Error messages

Message Meaning
“Required” Domain or servers missing
“Not a valid domain” It is not a DNS name of at least two labels
“This domain is already forwarded” An entry for the same domain already exists
“At most 32 forwarded domains” You have reached the maximum
“At most four servers” Too many servers for one domain
“Each server: an IPv4 address (not the loopback)” A server is not a valid IPv4 address, or it is 127.x or 0.0.0.0
“A server is listed twice” The same address repeated
“At most 128 characters” Comment too long
“This entry no longer exists: reload the page” Someone else deleted it in the meantime

For the technician Each active domain becomes a forward-zone of its own, plus domain-insecure (AD zones are not signed, and under a signed public parent DNSSEC validation would declare them bogus) and a local-zone … transparent: without it, Unbound would answer the special-use names (test., home.arpa.) and the private reverse zones by itself, and would never consult the server. In the firewall, the redirection of the forced zones becomes ip daddr != { <servers> } … redirect; the refusal of 853 stays.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer