7. Zones and upstreams
This chapter shows how to make your own DNS names, and how to set the external DNS servers that kudurru asks.
Before you start:
- To change zones, you have the role Admin. You can also have the role Zone admin for one zone.
- To change upstreams, you have the role Admin.
Zones
A zone is a part of the DNS name space. kudurru serves four types of zone.
| Type | Meaning |
|---|---|
| Primary | kudurru is the authority. You keep the records in kudurru. kudurru answers from these records. |
| Forward | kudurru sends the queries for the zone to an upstream group. Use it for a company or Active Directory zone. |
| Secondary | Every kudurru node copies records from an external primary. Changes belong on that primary. |
| Stub | Each node discovers the zone’s authorities and sends queries directly to them. |
A block list cannot block a name in a primary zone. The records of your own zone always get an answer.
The wizard creates primary, forward, secondary and stub zones. Catalog zones are reserved for a later release.
The schema also has the types external, catalog and secondaryCatalog.
On Kubernetes, an external zone is filled from Ingresses, Gateway API routes
and LoadBalancer Services when the server runs with externalZones.enabled
(Helm value externalZones.enabled); you edit those objects, not the zone's
records. kudurru does not serve the catalog types. On the SQLite store the API
refuses a zone of any of the three types with invalid and names spec.type.
Nothing is stored.
See the zones
Open DNS > Zones. Figure 1 shows the page.
Figure 1. The page Zones.
The zone . is the root zone. It is a forward zone that the system makes.
It sends all other queries to the upstream group default.
The column Serial shows the SOA serial. kudurru increases it when you change a primary record. Secondary serials and availability are labeled with the responding node; different replicas can temporarily report different copies. Shared Kubernetes status does not assert that every secondary is ready.
Create a primary zone
- Open DNS > Zones.
- Click New zone. A wizard opens.
- On the step Type, select Primary. Click Next.
- On the step Apex, enter the Zone name, for example
home.arpaorlab.example. Click Next. - On the step Records and access, change a value only if you need to. Click Next.
- On the step Review, click Create zone.
Figure 2 shows the step Type.
Figure 2. The step Type of the wizard.
Figure 3 shows the step Records and access.
Figure 3. The step Records and access of the wizard.
All the fields on this step have a default.
| Field | Meaning |
|---|---|
| Name servers | The NS records of the zone. If you add none, kudurru uses its own name. |
| Default TTL | The TTL for records that have no TTL of their own |
| Primary name server, Responsible mailbox | Fields of the SOA record |
| Refresh, Retry, Expire, Negative TTL | Times for secondary servers and for caches |
| Who may query | The clients that can query the zone (see the table below) |
The choices for Who may query are:
| Choice | Meaning |
|---|---|
| Everyone | Any client can query the zone. This is the default. |
| Private networks only | Only clients with private, loopback or link-local addresses |
| Clients in the ACL | Only the clients that the ACL allows |
| Zone name servers only | Only the addresses of the NS records of the zone |
| Name servers and the ACL | The name servers and the clients that the ACL allows |
| Nobody | kudurru refuses all queries. The zone stays defined. |
The Query ACL is a list of addresses or ranges. The first match wins.
An exclamation mark in front of an entry denies it, for example
!192.168.1.66.
Override local names and resolve the rest publicly
For a domain you already host publicly, keep your internal records in one primary zone and enable Resolve missing names publicly on Records and access. For an existing zone, use Zone settings > Edit. Select a Fallback upstream group, or leave Normal resolver routing selected to follow client policies, conditional forwarding and the default group. The group can forward to a public resolver or use native recursive DNS.
For example, create herbaugh.network with this option enabled and add
auth as an A record pointing to your internal IP. Queries for
auth.herbaugh.network use the local record. Names you have not defined,
such as www.herbaugh.network, resolve publicly. You do not need to change
your public Cloudflare records or delegate the zone to kudurru.
Fallback applies to missing names, not missing record types. If auth has
only an A record, its AAAA and TXT queries return no data locally instead
of using public records. Wildcard matches follow the same rule. A more
specific zone still takes precedence. Disabling or expiring a local record
removes the override and can expose the public answer again.
The domain apex also resolves publicly for ordinary types until you add a
record named @. SOA, NS and ANY queries at the apex remain local. Zone
transfers and NOTIFY are unavailable for zones using fallback. BIND files
carry local records only; use object backups to preserve fallback settings.
Local overrides are unsigned, even when the public zone uses DNSSEC. Clients that validate DNSSEC themselves can reject these local answers because they do not match the signed public zone. Public-only answers retain the resolver's validation result. An answer combining a local alias with a public target does not claim DNSSEC validation for the whole chain.
The zones list marks these zones as Public fallback. A selected non-default fallback group takes precedence over client policies and conditional forwarding. Otherwise, routing uses the client's policy group, then the longest matching conditional rule, then the default group.
For YAML configuration, an empty fallback object enables normal routing:
apiVersion: kudurru.io/v1alpha1
kind: DNSZone
metadata:
name: herbaugh-network
spec:
zoneName: herbaugh.network.
type: primary
fallback: {}
To select a group, use fallback: { upstreamGroup: public }, with public
replaced by an existing forwarding or recursive group. Omit fallback to
keep normal primary-zone behavior: missing names answer NXDOMAIN.
Create a forward zone
- Open DNS > Zones. Click New zone.
- On the step Type, select Forward. Click Next.
- On the step Apex, enter the Zone name. Click Next.
- On the step Upstream, select the Upstream group.
- Select DNSSEC validation: Default, Validate or Do not validate. Click Next.
- On the step Review, click Create zone.
The upstream group must exist. Create an upstream group first if it does not.
Default uses the setting dnssec.enabled. This setting is off after
installation, and then kudurru does not check the signatures of forwarded
answers. Validate and Do not validate apply to this zone only. A
recursive upstream group checks DNSSEC with its own recursion settings. Read
DNSSEC validation for the trust anchors.
Create a secondary zone
- Open DNS > Zones > New zone and select Secondary.
- Enter the zone's apex, such as
partner.example.. - Enter one or more primary addresses in preference order. Hostnames and IPs
are accepted, with port 53 by default:
primary.example,192.0.2.53:5300, or[2001:db8::53]:5300. - If the primary requires TSIG, enter the key name. Configure that key's
secret in
tsigKeyson every kudurru node; the form does not store secrets. - Review and create the zone. Allow each node's source address through the primary's transfer ACL.
The zone detail shows the copy on the responding node: serial, record count, last confirmation, expiry, next attempt and the latest transfer error. Refresh, retry, expiry and record TTLs come from the primary's SOA and records. Records are read-only in kudurru; its local record editor and import are unavailable for secondaries.
A failed refresh keeps the last good copy until expiry. At expiry, that node answers SERVFAIL for the zone until it refreshes successfully. Restarting does not extend the deadline. Keep each node's data directory on persistent storage to retain copies across restarts; an ephemeral replacement needs a new transfer. Changes to the secondary configuration or its credentials also require a fresh transfer. Other zones can continue to answer while this secondary is unavailable.
Primaries can send NOTIFY to any replica's UDP, TCP, or DoT listener. The source address must match a configured primary, and the configured TSIG key is required when present. For primary hostnames, address authorization is refreshed every 30 seconds and expires after two minutes if resolution fails. The receiving replica sends a refresh hint to peers over the authenticated internal listener; every replica then checks and transfers independently. Lost hints recover at the next SOA refresh. NOTIFY never extends expiry by itself.
Choose TCP or TLS in the transfer settings. TLS checks the primary certificate
against each node's trust store and requires its hostname or IP in the
certificate. Install a private CA in each node's trust store when needed.
The default port is 53 for either transport, so include :853 for a primary
listening on the standard TLS port. Failed TLS verification never falls back
to plaintext.
Initial copies use AXFR. Later serial changes use IXFR with automatic AXFR fallback when the primary lacks incremental history. Expired copies and credential changes require a fresh AXFR. Invalid deltas retain the last-good copy until its existing expiry.
Signed secondaries preserve and serve their transferred signatures with NSEC or NSEC3 proofs (including opt-out). Malformed or incomplete signed copies are rejected. Ordinary queries requesting DNSSEC material fail with SERVFAIL if a required signature has expired, even when SOA expiry has not elapsed. Queries without DO can still use the copy until SOA expiry.
Explicit RRSIG queries retain the original signature bytes for diagnostics. The secondary does not sign locally or assert validation through AD. Local secondary export is not available yet.
Create a stub zone
Choose Stub in the new-zone wizard, enter the zone apex, and add one to 16
Bootstrap servers. Use hostnames or IP addresses, optionally with a port.
For example, 192.0.2.53 uses UDP port 53, while tcp://ns.corp.example:5353
uses TCP port 5353. Use brackets for IPv6 with a port. TLS is not supported.
The discovered servers use the successful bootstrap server's protocol and port.
Each node discovers and refreshes the zone's authorities independently. The zone page shows Stub on this node, including discovered addresses, the last observed SOA serial, confirmation and expiry. This is a route, so the page has no editable records, import, export, or NOTIFY controls. Change records at the external authority; edit bootstrap servers under Zone settings.
A failed discovery keeps an unexpired route. Once the route expires, queries for the zone answer SERVFAIL until discovery succeeds. Restarting preserves the original deadline. Recursive clients receive a direct authority answer; non-recursive clients receive the discovered NS/glue referral. Child referrals are returned without being followed. Stub answers do not assert DNSSEC AD.
Add a record
- Open DNS > Zones.
- Click the name of the zone.
- Click Add record. A dialog opens (Figure 4).
- Enter the Name. The name is relative to the zone. Use
@for the apex of the zone. - Select the Type, for example A (IPv4 address).
- Select the TTL, or keep Zone default.
- Enter the value in the field under Target 1.
- Click Add record.
Figure 4. The dialog Add a record.
To add a second value for the same name and type, click Add target. To keep a record but remove it from the answers, turn on Disabled.
The field Record set shows the object that stores the record. The
default name is api- and the name of the zone.
Figure 5 shows the page of a zone.
Figure 5. The page of a zone.
The page has these functions:
- Filter by name, type or value limits the rows.
- Edit and Delete in a row change or remove one record.
- Import BIND adds the records of a BIND zone file.
- Export downloads the zone in BIND format.
- Send NOTIFY queues a notification for the zone's committed serial. On
SQLite, success confirms durable acceptance; delivery happens in the
background and pending requests survive restart. Repeating a request while
one is pending coalesces it. A later request after acknowledgment sends the
same serial again without editing records. The zone's NOTIFY policy still
controls its recipients;
noneperforms no delivery.
Import a zone file
- Open the page of the zone, or the page Zones.
- Click Import BIND or Import zone file.
- Select a file, or paste the text of the zone.
- Click Import.
CAUTION: Check the result in the table of records after the import.
Let a program change records
A program can add and remove records in a primary zone with the DNS UPDATE
protocol (RFC 2136). Examples are the tool nsupdate, a DHCP server and an
ACME client. Updates are off by default.
You set this function in the YAML of the zone, not in the dashboard. A TSIG key identifies the program. For each key, you give the names and the record types that the program can change.
Dynamic DNS updates has the procedure and the limits.
Zones that you cannot change
A zone with the owner managed by file or managed by Kubernetes is read-only. The buttons are gray. Change the file or the resource.
Upstreams
An upstream is an external DNS server. kudurru asks an upstream when the name is not in a zone and not in the cache. Upstreams are in groups. A group has a list of servers, a strategy and a time limit. A group can also find the answers itself, from the root servers. See Resolve names from the root servers.
Open DNS > Upstreams. Figure 6 shows the page.
Figure 6. The page Upstreams.
| Column | Meaning |
|---|---|
| Group | The name of the group. The group default gets each query that no other rule sends elsewhere. |
| Strategy | How kudurru selects a server. A recursive group shows Recursive. |
| Servers | The number of servers |
| Health | How many servers are healthy now, for this node |
| Queries (24 h) | The number of queries that the group answered |
| Timeout | The time limit for one server |
The strategies are:
| Strategy | Meaning |
|---|---|
| Parallel best | kudurru asks two healthy servers at the same time and uses the first good answer. This is the default. |
| Strict order | kudurru asks the servers in order. It goes to the next server only after a failure. |
| Random | kudurru asks one healthy server, selected at random. |
| Fastest first | kudurru selects by the round-trip time, with a random weight. |
Create an upstream group
- Open DNS > Upstreams.
- Click New group. A wizard opens.
- On the step Provider, select a provider, for example Quad9, or select Custom. Click Next.
- On the step Servers, select the filtering and the Transport. See Figure 8. Click Next.
- On the step Group, enter a Name and select a Strategy. Click Next.
- On the step Review, click Create group.
Figure 7 shows the step Provider.
Figure 7. The step Provider of the wizard.
Figure 8. The step Servers of the wizard.
An encrypted transport protects the queries on the way to the upstream. The choices depend on the provider. You can select plain DNS, DNS over TLS (DoT) or DNS over HTTPS (DoH).
With Custom, enter the servers yourself. Use one of these forms:
| Form | Example |
|---|---|
| Plain DNS | 192.168.1.1:53 |
| DNS over TLS | tls://dns.quad9.net |
| DNS over HTTPS | https://dns.quad9.net/dns-query |
| DNS over QUIC | quic://dns.example.net |
| DNS over HTTP/3 | h3://dns.example.net/dns-query |
You can put a display name in front of a server, for example
quad9=tls://dns.quad9.net.
To use the group, select it in a policy (Chapter 5) or in a forward zone, or add a conditional rule (below).
Set the bootstrap resolvers
kudurru must find the address of an upstream that has a host name, for
example dns.quad9.net. For this it uses the bootstrap resolvers.
- In Bootstrap resolvers, click Add resolver.
- Enter a plain DNS server as
address:port, for example1.1.1.1:53. - Click Save.
If you add none, kudurru uses the resolver of the system.
Send a domain to a group
A conditional rule sends the queries for one domain suffix to a group. The longest suffix wins. kudurru does not cache these answers.
- In Conditional forwarding, click Add rule.
- Enter the Domain suffix, for example
corp.example. - Select the Group.
- Click Save rules.
Set EDNS Client Subnet
EDNS Client Subnet decides if upstreams learn the network of the client. The default Strip (never send a client subnet) protects the privacy of your clients. Change it only if you know why.
Resolve names from the root servers
A group has one of two modes. In the mode Forward (the default), the group sends the queries to its servers, for example Quad9. In the mode Recursive, kudurru finds the answer itself. It asks a root server, then the servers of each zone in the name. It also checks the DNSSEC signatures of the answers.
Know these points before you use the mode Recursive:
- No single provider sees all the names that your network looks up.
- Each authoritative server sees the names in its zone and the public
address of your network. The root servers see only the last label, for
example
com(QNAME minimization). - The queries to the authoritative servers use plain DNS on port 53. They are not encrypted, so your internet provider can see them.
- The node must send UDP and TCP to port 53 of all addresses on the internet. Some firewalls and some internet providers block or redirect port 53. Then the group gets no answers.
- The first query for a name takes longer, usually 50 to 500 ms. The cache answers the next queries for the name.
- kudurru never sends the client subnet in this mode.
To make the group default recursive:
- Open DNS > Upstreams.
- Click the group
default. - In Settings, select Recursive in Mode.
- Keep the Timeout at
4s. In this mode it is the time limit for the full search of a name. - Click Save.
The page of the group shows one server, the recursive resolver. To go back, select Forward and enter the servers again.
You can also set the mode in the configuration file:
upstreams:
groups:
default: { mode: recursive, timeout: 4s }
router: { servers: ["192.168.1.1:53"] }
conditional: { "[/lan/1.168.192.in-addr.arpa/]": router }
The panel Recursion on the page Upstreams applies to all recursive groups:
| Setting | Meaning |
|---|---|
| DNSSEC validation | kudurru checks the signatures. On by default. |
| QNAME minimization | Each server gets only the part of the name that it needs. On by default. |
| IPv6 to name servers | Auto uses IPv6 when the node has an IPv6 route to the root servers. |
The root trust anchors and the root hints are in Settings. Keep them empty. Then kudurru uses the values that it has.
Keep the names of your router
The root servers do not know the local names of your router, for example
nas.lan or fritz.box. Send these names to the router with a conditional
rule (see Send a domain to a group):
- Make a group
routerin the mode Forward, with the address of the router. - Add a conditional rule for the local domain of the router, for example
lan. - Add a conditional rule for the reverse zone of your network, for example
1.168.192.in-addr.arpa.
kudurru answers some names itself and never sends them to the internet.
These are the reverse names of private addresses and the names under
home.arpa, local, internal, test, invalid, onion and alt.
The answer is NXDOMAIN, and localhost gets 127.0.0.1 and ::1. A
conditional rule or a forward zone for one of these names comes first.
Read DNSSEC failures
When a signature is not correct, expired or missing in a signed zone, the answer is "bogus". kudurru does not give a bogus answer to the client:
- The client gets SERVFAIL.
- The answer has an extended DNS error (EDE) from 6 to 12, for example
7 Signature Expired. The text of the error names the zone that failed. - The query log shows the status
dnssec_bogusand the DNSSEC statebogus.
A client that sets the CD bit (it disables the check) gets the data, without the AD bit. You can use this to find the cause:
dig @<kudurru> example.com A +cd
Usually the owner of the zone made the error, and other resolvers that check DNSSEC also fail. Tell the owner of the zone. Do not turn off DNSSEC validation for one bad zone. Add a temporary exception (a negative trust anchor) for the zone instead. An exception has a reason and an end time that is 7 days away at most. Read Temporary exceptions.
A forwarding group does not check signatures unless you turn on the setting
dnssec.enabled or set Validate on a forward zone. If its server validates
DNSSEC and sends SERVFAIL with an EDE from 6 to 12, the status is also
dnssec_bogus.
Read the health of a group
Click the name of a group. The page of the group (Figure 9) shows each server. For each server it shows the health, the round-trip time (RTT), the number of queries and the number of errors.
Figure 9. The page of an upstream group.
If a group shows 0 of 1 healthy, the server does not answer. See Chapter 12.
Change or delete a group
- Open the page of the group.
- Change the Mode, the Servers, the Strategy or the Timeout in Settings.
- Click Save.
The section Used by shows the places that use the group. You cannot
delete a group that is in use, and you cannot delete the group default.
Click Delete to remove a group that is not in use.
Use the command line
| Task | Command |
|---|---|
| List zones | kudurru zones list |
| List the records of a zone | kudurru records list <zone> |
| Add a record | kudurru records add <zone> nas.home.arpa A 192.168.1.10 --ttl 300 |
| Remove a record | kudurru records rm <zone> <name> <type> |
| Serve a record to one client group only | kudurru records add <zone> nas.home.arpa A 10.9.0.20 --view lan -n kids |
| Remove one view of a record | kudurru records rm <zone> nas.home.arpa A --view lan -n kids (--view -: the default data only) |
| Import a zone file | kudurru zones import <zone> -f <file> |
| Export a zone | kudurru zones export <zone> |
| Send NOTIFY | kudurru zones notify <zone> |
| Change the upstreams | kudurru settings set upstreams.bootstrap=9.9.9.9,1.1.1.1 |
Select an outbound NOTIFY key and source
For primary zones, the creation wizard and Zone settings expose NOTIFY TSIG key and NOTIFY source address. Enter only a configured key name, never its secret. Clearing the key uses the first transfer key, or unsigned NOTIFY if neither is configured. A missing selected key fails delivery rather than sending unsigned traffic. These options apply when the zone's existing NOTIFY mode enables delivery; they do not enable NOTIFY or change which keys can request a transfer.
The source is a literal local IPv4 or IPv6 unicast address. Clearing it inherits
the global notify.source, then system selection. Hostnames, ports, scoped or
IPv4-mapped IPv6 addresses are rejected. A valid address that cannot bind or
reach a target's address family fails without an alternate source. NAT can
still change the address observed by the secondary.
The same optional fields are available through zone YAML and the object API:
spec:
policy:
notify: specified
notifyTargets: [192.0.2.20]
notifyTSIGKeyRef: notify-key.example.
notifySource: 192.0.2.10
Both selected key and source belong to the captured zone policy. Rotation or a policy change during delivery cannot acknowledge the obsolete pending intent.
Import a dnsmasq routing file
Set upstreams.importFile in the node configuration (or
KUDURRU_UPSTREAMS__IMPORTFILE) to a local routing file. Relative paths resolve
beside the node configuration. For example:
upstreams:
importFile: upstream-routes.conf
server=/corp.example/10.in-addr.arpa/192.0.2.53#5353
server=/corp.example/192.0.2.54
server=/public.corp.example/#
[/svc.example/]tls://192.0.2.55 tcp://192.0.2.56
Repeated rules for a suffix combine servers in their original order. Imported
conditional groups use strict failover and the names dnsmasq-1, dnsmasq-2
and so on; # selects the normal default group. Global server=192.0.2.53 or plain server
lines can replace the compiled default when no explicit default group is set.
This translates routing, not dnsmasq's adaptive upstream selection strategy.
The whole import is refused on a collision, unsupported directive or malformed
input. Errors report line numbers without echoing the source. local=, local
answer rules, address=, DHCP options, source-interface selectors and wildcard
selectors require explicit Kudurru configuration. Blank lines and full-line
comments are supported; shell expansions and inline comments are not.
Limits are 4 MiB per regular file and 64 KiB per line. A file holds at most 65,536 rules and suffixes, 4,096 conditional groups, 256 servers per suffix and 1,024 default servers. Expansion is also capped at 65,536 suffix/server assignments and 4 MiB of server-address bytes, preventing short input from multiplying into large routes. Up to 64 unsupported-line reports are retained. No partial import is installed.
The path is host-only. Existing environment overrides, persisted canonical settings and UI ownership retain precedence. To adopt or release upstreams, use the normal reviewed ownership workflow; adopted values survive a missing original file, but release requires a matching available source. The setting adds no watcher and does not overwrite an existing cluster singleton on restart.








