DNS topology wizard
The topology wizard sets up internal DNS the recommended way in one step, and checks an existing setup against it. Open it from DNS → Topology, or Topology wizard on the Zones page. Nothing changes until you confirm the review.
The recommended design
- One internal domain (for example
corp.example.com) used by every device at every site. Sites share it; they don't each get their own domain. - A hidden primary holds the master copy and receives every change, both yours and the names DHCP registers. It isn't listed as a name server and clients never query it.
- Resolvers at each site are secondaries: each keeps a full copy, updated within a second or two of every change, and answers the devices at its site. Lookups stay local, and keep working if a WAN link drops. Changes travel over each agent's existing encrypted connection to Subnetly, so sites need no DNS ports open to each other or to the hidden primary (see How changes reach your servers).
- Reverse zones for every DHCP network, so addresses resolve back to names.
- Dynamic DNS: DHCP registers device names with the hidden primary, signed with each server's key. At a site with its own resolver, DHCP hands the registration to that local resolver, which passes it to the hidden primary through Subnetly.
DHCP hands each site its own resolvers (option 6) automatically, so nothing needs to be set per scope.
Steps
- Domain. The health check lists anything that doesn't match the design. Enter or confirm the internal domain. Avoid
.local: it belongs to multicast DNS, so Apple devices, Linux and printers resolve it differently. - Hidden primary. Pick a Linux agent that's always on, usually at your main site or data center. Resolvers on agent 1.2.1 or newer never connect to it directly; Windows DNS servers and older agents need TCP and UDP port 53 to it. Windows DNS servers can be resolvers but not the hidden primary.
- Resolvers. Tick at least one server per site. Sites with DHCP scopes but no resolver are flagged; their devices use resolvers at other sites.
- Options. Reverse DNS for every DHCP network, dynamic DNS, and name registration for scopes that register nothing yet. Scopes you've already configured are left as they are.
- Review. Every zone the wizard creates or changes, which servers start or stop serving it, role changes, and any warnings. Problems that would break DNS block Apply.
What applying does
- Sets the internal domain.
- Creates the domain's zone and the missing reverse zones, or adopts existing ones.
- Makes the chosen server the hidden primary and the chosen resolvers secondaries. Servers you didn't choose stop serving these zones. Forward and stub zones are left alone.
- Turns dynamic updates on or off, and bumps each zone's serial.
- Turns on name registration for scopes that registered nothing.
Name server records, transfer permissions, NOTIFY targets and signing keys follow from the roles automatically. Each server picks up its new configuration within a few seconds; devices get new resolvers at their next DHCP renewal.
Health checks
| Check | Meaning |
|---|---|
| No internal domain | Devices have no domain name. |
| No zone for the internal domain | The domain isn't served by Subnetly. |
| No primary / several primaries | Secondaries have nowhere, or more than one place, to copy from. |
| No secondaries | Only the primary answers clients. |
| Site without a resolver | Devices at that site depend on the WAN for every lookup. |
| Missing reverse zones | Addresses of some DHCP networks don't resolve to names. |
| Primary or DHCP server too old | Dynamic DNS needs agent 1.1.64 or newer. |
| Zone not dynamic | Scopes register names, but the zone doesn't accept them. |
Active Directory
If your internal domain is an Active Directory domain, the wizard keeps it on the domain controllers and makes the Subnetly resolvers hold secondary copies of it and of its _msdcs zone (and of AD-integrated reverse zones). Lookups stay local at every site; the domain controllers remain the primary, and Windows computers keep registering their own names securely with them.
- Domain controllers running the Subnetly agent are found automatically from the zones they report. The agent lets exactly the chosen resolvers copy the AD zones and sends them NOTIFY on every change (Zone transfers: only to the following servers). For AD-integrated zones the setting is stored in Active Directory and applies on every DC. Subnetly never pushes, changes or removes records in a zone a domain controller owns. This applies to every AD-integrated zone on a DC running the agent, including zones imported when the agent first connected: Active Directory, DHCP and admins change those records on the DC, and the zone's record list in Subnetly is marked as owned by the DC.
- Domain controllers without the agent: tick This is an Active Directory domain and enter their addresses. The review shows one PowerShell command per zone to run in an elevated PowerShell on any DC.
- A hidden primary is optional in this mode; it's only needed for zones the domain controllers don't hold, such as reverse zones for your DHCP networks.
- Domain controllers can't be chosen as resolvers of their own AD zones.
- Kerberos signing lets Subnetly DHCP register other devices' names (phones, printers, Linux) in the AD domain while it keeps accepting only secure updates. See below.
Kerberos signing
Active Directory zones accept only secure (Kerberos-signed) updates by default. To let Subnetly DHCP register names there, set up Kerberos signing in the wizard's Active Directory section:
- Set up on a domain controller asks the Subnetly agent on that DC to create a
subnetly-dhcpaccount with the service principalDHCP/subnetly-dhcp.<domain>, and export its key (a keytab, made withktpassand a new random password). It also lists the domain controllers. - Domain controllers without the agent: run the PowerShell shown in the wizard in an elevated PowerShell on any DC, and paste its output.
- The keytab is stored encrypted and sent only to Subnetly DHCP servers (agent 1.1.70 or newer with the current DHCP container), which sign every update to the domain controllers with it (GSS-TSIG). Updates to Subnetly's own DNS servers keep using their TSIG keys.
- Names DHCP registers are ordinary dynamic records on the DC, so Windows ages and scavenges them as usual. Computers that register themselves keep owning their records; DHCP can't overwrite them.
- Rotate the key runs the setup again with a new password. Stop signing removes the key from Subnetly. The account stays in Active Directory; delete it there if you no longer need it.
Taking Active Directory over
Instead of keeping the domain on its domain controllers, the wizard can make a Subnetly primary its primary: choose Take over in the Active Directory section.
- Set up Kerberos for takeover. Besides the DHCP account, this creates
subnetly-dnswith the service principalDNS/subnetly-primary.<domain>: Windows computers get tickets for it when they update the zone. Both accounts are AES-only. - Apply the wizard. The chosen Linux agent (1.1.71 or newer) becomes the primary of the domain and
_msdcs, namedsubnetly-primary.<domain>in their SOA, and copies both zones from the domain controllers. The domain controllers keep serving and owning the zones meanwhile; nothing changes for clients. - Cut over once the status shows every zone copied. Each domain controller running the agent exports its zone to a backup file in its DNS folder, removes the AD-integrated zone, adds it back as a secondary of the Subnetly primary, and re-registers its records (Netlogon does this within a few minutes). If a step fails, the backup is loaded back so the domain controller keeps answering.
After takeover:
- Domain controllers update anything in the zones; domain computers update only their own A/AAAA records (
ms-self); Subnetly DHCP keeps its TSIG key. Unsigned updates are refused. - Domain controllers without the Subnetly agent lose their copy at cutover (the AD-integrated zone is removed from Active Directory): add a secondary zone pointing at the Subnetly primary on them.
- Cancel takeover is available until cutover.
- Rotating the keys keeps the previous DNS key valid for cached tickets.
Zone health
Linux DNS servers (agent 1.1.66 or newer) report every zone they serve each minute, read from BIND's own statistics: the zone's serial, whether the server has a copy, and how many zone transfers and name registrations it refused. The topology page's Server status table shows each server's copy of each zone, and these checks raise alerts (Health, notifications and email):
| Alert | Raised when | Usually means |
|---|---|---|
| Server has no copy of a zone | A secondary hasn't loaded the zone 10 minutes after it was deployed. | TCP port 53 to the primary is blocked, or the primary is offline. |
| Server can't reach its primary | A secondary's last successful check with the primary is older than one refresh cycle (refresh + 2 × retry). Critical when less than a day, or a quarter of the zone's expire time, remains before it stops answering. | The primary is unreachable from that server. |
| Server behind its primary | A secondary's serial has been behind the primary's for over 15 minutes. | NOTIFY (UDP 53) from the primary isn't arriving, or transfers are refused. |
| Zone transfers refused | The primary refused requests for a copy of the zone in the last 24 hours. | A server that isn't a secondary of the zone is asking for it. |
| Name registrations refused | The primary refused dynamic updates in the last 24 hours. | A DHCP server or device without permission tried to register a name. |
Alerts resolve on their own once the next reading is healthy. Changes normally reach every secondary within seconds; a secondary briefly behind is normal. The port causes in the table apply to servers that copy zones directly from the primary (Windows DNS servers, servers with DNS views, agents older than 1.2.0). For servers that get changes through Subnetly, the usual cause is that the primary's or the secondary's agent is offline.
How changes reach your servers
Linux agents on 1.2.0 or newer replicate zones through Subnetly instead of copying them from each other:
- The zone's source is its hidden primary, or the oldest primary if there's none. It is the only server that writes the zone. Every change it makes (yours, and names registered by DHCP or devices) is sent to Subnetly at once.
- Subnetly passes each change to the zone's other Linux servers, over the same outbound connection each agent already keeps (TCP 443). Their BIND is an ordinary secondary of the local agent, so serials match the source exactly and the usual refresh and expire timers still apply. Secondaries keep answering if the source or Subnetly is unreachable.
- A server that was offline catches up with only the changes it missed.
- Dynamic updates sent to a secondary (DHCP, or devices with
allow-update-forwarding) travel the same way to the source, on agent 1.2.1 or newer. A site needs no route to the hidden primary for either replication or name registration.
Windows DNS servers, servers with DNS views, zones whose primary is an Active Directory domain controller, and agents older than 1.2.0 keep standard NOTIFY and zone transfers, so mixed fleets keep working during an upgrade.
Safeguards on the Linux servers:
- A record DNS rejects (for example a name that isn't valid there) doesn't hold back the rest of a change: the other records apply, and the rejected one is retried on its own.
- A zone that fails to load recovers by itself once the offending records are fixed or deleted. Names containing underscores (such as Active Directory's
gc._msdcs) and MX or SRV records pointing at an alias (CNAME) load with a warning, as they do on Windows DNS. - An agent that restarts after losing its local data waits for Subnetly to resend the records rather than deleting any. It also refuses any unexpected change that would remove most of a zone, and logs an error (see the agent's logs).
Let Subnetly run the hidden primary
Don't have an always-on server for the hidden primary? Subnetly can run it for you, reached by your resolvers through an encrypted tunnel. See Cloud hidden primary.