Delegating a zone to Nexus¶
A GSLB is reached by handing it a subdomain. The parent server — the one that
already owns example.com — has to be told that gslb.example.com lives
somewhere else, and the parent will check that the child actually claims it.
That check is why this page exists. Microsoft DNS will not accept a delegation whose child does not answer SOA at the apex, and its error message does not say so. Technitium and BIND are more forgiving but behave badly in the same situation. Nexus answers SOA and NS at every zone apex it is configured for, so the work is: declare the zone on the Nexus side, then point the parent at it.
1. Declare the zone on Nexus¶
domains show prints the SOA and NS that Nexus is actually serving, and how
many services live under the zone. Check three things:
- NS is not empty. A stub zone or conditional forwarder fetches the NS set
from us; without it, the parent has nothing to talk to after the first query.
Set
dns.nsNamesin config, or override per zone withgslbctl domains set gslb.example.com --ns ns1.example.com,ns2.example.com. - The apex is what you meant. Declaring a zone claims its whole subtree —
every name below it that Nexus does not know about now answers NXDOMAIN.
A
Services covered: 0line usually means the apex is mistyped. - The serial is stable. Run
domains showtwice; the serial must not move unless you changed something.
Confirm on the wire, against a Nexus node:
dig @nexus-node.example.com gslb.example.com SOA +norecurse
dig @nexus-node.example.com gslb.example.com NS +norecurse
dig @nexus-node.example.com gslb.example.com ANY +norecurse # SOA and NS both
All three must come back NOERROR with the aa flag set.
2. Point the parent at it¶
Microsoft DNS¶
Delegation (the parent keeps referring clients down to Nexus):
- DNS Manager → expand the parent zone (
example.com). - Right-click → New Delegation…
- Delegated domain:
gslb(the label only — the wizard appends the parent). - Add each Nexus nameserver by FQDN and IP. The wizard resolves and validates the name here; a child that does not answer SOA at the apex fails at this step with a generic error.
Stub zone (the parent keeps its own copy of the child's NS set):
- DNS Manager → right-click the server → New Zone… → Stub zone.
- Zone name:
gslb.example.com. - Master server: a Nexus node's IP.
A stub zone transfers the apex NS RRset from Nexus and refreshes it on the SOA REFRESH timer, so an empty NS set breaks it outright.
Conditional forwarder is the third option and the least strict — it does not read the NS set. Use it only when you cannot create a delegation or stub zone.
# Verify from the parent, after either of the above:
Resolve-DnsName -Name gslb.example.com -Type SOA -Server <parent-dns-ip>
Resolve-DnsName -Name www.gslb.example.com -Server <parent-dns-ip>
Technitium¶
- Zones → Add Zone → Primary for
example.comif it isn't there already. - Open the zone → Add Record → type NS, name
gslb, value the Nexus nameserver FQDN. Repeat per nameserver. - If those nameserver names are themselves inside the delegated zone, add glue
A/AAAA records for them in the parent (
ns1.gslb,ns2.gslb).
For a stub zone: Zones → Add Zone → Stub, name gslb.example.com, primary
name server a Nexus node's IP.
BIND¶
; in the example.com zone file
gslb IN NS ns1.gslb.example.com.
gslb IN NS ns2.gslb.example.com.
; glue, because the nameservers live inside the delegated zone
ns1.gslb IN A 203.0.113.10
ns2.gslb IN A 198.51.100.10
The records, worked out for you¶
You do not have to derive any of the above by hand. Declaring the zone here produces the exact block to paste at the parent — NS records, glue where it is needed, and the DS if the zone is signed:
gslbctl domains add gslb.example.com # prints the records when the delegation is not live yet
gslbctl domains setup gslb.example.com # prints them again at any time
The WebUI shows the same block in the zone editor on Admin → Domains, with a copy button, and opens it automatically for a zone that was just added.
It reports what is missing rather than inventing it. If a nameserver lives inside the zone being delegated and this cluster serves no address record for it, that is called out as something to fix here first — glue invented from a node's IP would point wherever this cluster happened to be listening, which is harder to debug than no glue at all.
3. Verify end to end¶
# Follow the delegation from the root, not from Nexus directly.
dig +trace www.gslb.example.com
# The parent should return a referral (NS in AUTHORITY, no AA flag).
dig @parent-dns.example.com gslb.example.com NS +norecurse
Then re-run verification on the Nexus side, which checks that the parent's NS records point back at us (and the DS record, if DNSSEC is enabled):
nsOk: ✓ means the parent and the child agree.
Glue records¶
If your nameserver names live inside the zone being delegated
(ns1.gslb.example.com serving gslb.example.com), the parent must publish
glue A/AAAA records for them — otherwise resolving the nameserver requires
asking the nameserver. Every server above does this differently; all of them
require it.
Avoid the problem entirely by naming the nameservers outside the delegated zone
(ns1.example.com), in which case no glue is needed.
Things that go wrong¶
| Symptom | Cause |
|---|---|
| Microsoft DNS "cannot create delegation", no detail | The child does not answer SOA at the apex. Check dig @nexus SOA first. |
| Stub zone stays empty / expires | The zone serves no NS records. domains show will say so. |
| Every name under the zone is NXDOMAIN | The apex is right but no services exist under it, or the apex is mistyped — check Services covered. |
| Secondary re-transfers constantly | An explicit soaSerial that never changes, or one that goes backwards. Use the auto serial. |
| Answers come back REFUSED | The name is outside every configured zone. Add the zone, or check for a typo in the apex. |
| Different serial from different nodes | Should not happen — the auto serial is derived from replicated rows. If it does, one node's datastore is behind; check the rqlite cluster. |
Keeping it working¶
Everything above is a point-in-time check. The parent drifts afterwards — an NS
left behind by a migration, a DS that no longer matches after a key roll, a
secondary that stopped transferring — and none of it shows up in a dig from a
machine whose resolver has the delegation cached.
Nexus checks the parent's view of every delegated zone in the background and alerts when it stops agreeing:
See Delegation health monitoring for what is checked and how to tune the interval.
Signing the zone (DNSSEC)¶
Signing is per zone, and the cluster generates the keys — there is no openssl
step and no restart:
That prints the DS to paste at the parent. If the zone is moving here from another provider and its DS is already published, import the existing keys instead of generating new ones — otherwise validation breaks until the new DS propagates:
Publish that DS at the parent, then re-run gslbctl domains verify — dsOk: ✓
means the chain of trust is complete. Roll either key later with
gslbctl dnssec zsk rotate --zone gslb.example.com (omit --pem and the server
generates the new key).
Turning signing off keeps the keys, so switching it back on resumes with the
same DS and the record at the parent stays valid. If you delete a zone for good,
gslbctl dnssec purge --zone <apex> --confirm removes the keys it left behind.
Per-zone signing needs NATS: the generated keys live in the cluster's shared KV
bucket so every node signs with the same DNSKEY. The zone configured as
dnssec.zone is the exception — its keys come from PEM files, so it signs even
on a single node with no NATS.
See Delegated Domains for the full model.