DNS cutover and rollback checklist

Prepare a parallel kudurru installation, test DNS and client policies, switch IPv4 and IPv6 DNS advertisements, and recover if a check fails.

Use this checklist with the Pi-hole, AdGuard Home or Technitium guide. Do not change the network's DNS advertisements until the replacement passes the validation checks.

Prepare

  1. Back up your current DNS server using its guide. Record its addresses, DHCP options, IPv6 DNS advertisements, upstreams, local domains and reverse zones. Save a copy of the router configuration before editing it.
  2. Inventory services beyond blocking: DHCP, DNSSEC, recursive resolution, secondary zones, dynamic updates, encrypted endpoints and plugin behavior. Choose a replacement for every feature kudurru does not provide, for example DNSSEC signing, catalog zones and DHCPv6. Recursion and DNSSEC validation are available in upstream groups set to mode: recursive, and validation of forwarded answers is a setting that is off by default. Secondary zones and RFC 2136 updates are available.
  3. Give kudurru a fixed address on a separate host or VM. Two servers cannot bind the same address and port. If you use one host, configure separate bind addresses or publish different test ports explicitly. The examples below assume separate addresses, both on port 53.
  4. Install using Docker or packages or Helm. Keep network DNS pointed at the old server. Allow UDP and TCP port 53 from the intended client networks. Restrict the management listener to administrators.
  5. Sign in to https://<new-server>:8080/, change the initial administrator password and install an appropriate license key before creating policies beyond default.

The sample addresses 192.0.2.53 (old server), 192.0.2.54 (new server) and 192.0.2.10 (test client) are documentation placeholders. Replace them with reachable addresses from your network. Replace home.arpa if your local zone is different. Preserve existing names first; rename them separately later.

Connect the CLI

Install the kudurru binary matching the server version. The CLI uses the management API; it does not need to run on the DNS host.

kudurru login --server https://192.0.2.54:8080 --username admin \
  --name migration --default-namespace default --ca-file kudurru-ca.pem
kudurru config get-contexts
kudurru get policies -A -o yaml
kudurru get clientgroups -A -o yaml

Use the certificate that signs the management listener as kudurru-ca.pem. For the default self-signed listener, trust its certificate, or use --insecure-skip-tls-verify instead of --ca-file for your isolated test. --name migration selects a context for subsequent commands. Check its server address before applying objects.

Use the right namespace and owner

The examples in these guides use namespace: default, matching a fresh standalone installation. Helm normally seeds objects in the release namespace; older installations may retain default. Inspect the output above and change every namespaced example and the CLI context to match where your Policy/default lives. Use -n <namespace> to override the context for a command. Lists and groups referenced by a policy must be in that policy's namespace. DNSZone is cluster-scoped and has no namespace.

Choose one way to own an object:

  • Dashboard or kudurru apply -f: API-managed objects remain editable in the dashboard. This is the path used by the examples below.
  • objects.d/: files are authoritative and their objects are read-only in the dashboard. Keep list references in those files too.
  • Kubernetes: use kubectl apply for CRDs and edit their manifests. kudurru apply refuses Kubernetes-owned objects with managed_by.

Do not apply the same object through several owners. See the configuration layout.

Apply results

kudurru apply -f prints one result for each document of a file and exits with an error when a document failed. Read every line: documents before a failed one stay applied.

One run applies every document of the file, also on the SQLite store, and a document that is already applied shows unchanged when you run the same file again. On the SQLite store a request can be refused as a whole when it begins while the node still publishes the previous change: it answers generation_pending, or every document reports unavailable: current writable serving generation unavailable. Nothing was applied; run the same command again after a few seconds. The same holds for a read directly after a change: kudurru records list directly after kudurru import bind can answer unavailable: ... generation pending for a moment.

A document that reports unavailable with "another change was committed on this node while the request ran" was not applied, and neither was any later document of the file: someone else changed the node in the meantime. Review the current state, then run the file again; the documents applied before report unchanged. Changes through a follower has the details of large files and of a cluster: send a file of many documents, and every restore, to the primary.

On the SQLite store the API refuses a zone that the node cannot serve, such as a zone of an unserved type or with an update policy that kudurru cannot use: it answers invalid, names the field, and stores nothing. A list URL that kudurru cannot download is accepted and serves no rules until a download succeeds (see the migration overview).

Recreate the configuration

Follow your product's guide. Before testing, verify these shared details:

  • A new installation includes the starter block list and a default policy. Replace the default policy's list references deliberately; leaving starter attached can explain a block that did not exist on the old server.
  • Creating a BlockList does not activate it. Reference it from a policy's blockListRefs or allowListRefs as appropriate.
  • An exact-IP group match takes precedence over a CIDR match; a longer prefix takes precedence over a shorter one. Default membership is a fallback. A specific group's policy does not inherit the default policy's lists. Include every baseline list that group needs.
  • IP/CIDR matching works on every installation; include IPv6 addresses or prefixes where applicable. A client-ID, MAC or hostname matcher matches only where a source supplies that identity: a DoT, DoQ or DoH listener that accepts client IDs, an inventory integration, or kudurru's own DHCP leases. Confirm the source on your deployment with client identity before you depend on one.
  • Preserve source addresses. A router that proxies DNS makes all devices look like the router; NAT or a Kubernetes Service can do the same. Send clients directly to kudurru, or use a deployment that preserves source addresses. Check the real query log before trusting a client-group rule.
  • Configure upstreams independently of the old server unless retaining it as an upstream is intentional. Avoid forwarding loops. A hostname-based upstream needs bootstrap resolution that does not depend on that upstream.
  • Inspect each list's status. status.invalid and status.unsupported count different kinds of skipped rules. Resolve unexpected skipped rules and failed downloads before proceeding.

Validate

First check object readiness and the policy explanation:

kudurru get blocklists -o yaml
kudurru get policies -o yaml
kudurru query tracker.example A --client 192.0.2.10
kudurru query example.com AAAA --client 192.0.2.10
kudurru query nas.home.arpa A --client 192.0.2.10

tracker.example is a deterministic rule included in the product examples. kudurru query --client evaluates the server's pipeline through the API as that client; it does not prove that a real device reaches port 53 or arrives with that source address. Run the following from the actual test client as well:

dig @192.0.2.53 example.com A +noall +comments +answer
dig @192.0.2.54 example.com A +noall +comments +answer
dig @192.0.2.54 example.com AAAA +noall +comments +answer
dig @192.0.2.54 example.com A +tcp +noall +comments +answer
dig @192.0.2.54 tracker.example A +noall +comments +answer
dig @192.0.2.54 nas.home.arpa A +noall +comments +answer

Repeat each relevant query against both servers. Public answers and TTLs can differ because of caching and CDN routing; compare successful resolution, response codes and intended filtering rather than identical output.

CheckPass condition
Public A and AAAA, UDP and TCPExpected records, no unexpected timeout, REFUSED or SERVFAIL
Blocked name and a subdomainExpected block response for both A and AAAA; the explanation names the intended list/rule
Explicit allow exceptionResolves even when an attached block list also matches
Local A, AAAA, CNAME and other records in useIntended targets; no missing record types
Reverse lookupdig @192.0.2.54 -x <device-address> reaches the correct PTR data or private reverse resolver
Default and custom client groupsOne real device per group shows the expected source IP, group, lists and upstream
Schedules and safe search, if usedExpected behavior inside and outside each time window and for the supported engines
Encrypted DNS, if usedActual client connects using the configured hostname, certificate, port and protocol
IPv6 client DNSReal queries reach kudurru and match the intended IPv6 group
Recursive group, if useddig @192.0.2.54 isc.org A +dnssec has the ad flag; a name in your router's local domain resolves through its conditional rule; the group's resolver is healthy on Upstreams (outbound UDP/TCP 53 is open)

Set one test device's DNS to kudurru while the rest of the network uses the old server. Test normal browsing, work VPNs, streaming, local applications and any service that needed an allow exception. Check Query log for its real address and investigate each unexpected result. Configure browser or OS secure DNS deliberately; an external DoH provider bypasses these servers.

Switch over

  1. Save the tested kudurru objects with kudurru backup --out before-cutover.yaml. Save settings, certificates and credentials separately; an object backup is not a full data-volume backup.
  2. If the old DNS server provides DHCP, complete the DHCP handoff described in its migration guide. kudurru includes opt-in DHCPv4 on Linux with either store; use the DHCPv4 deployment guide or keep your existing DHCP server. Preserve address reservations, active leases, lease ranges, gateway and search-domain options.
  3. Change DHCPv4's DNS option to kudurru. Also update DHCPv6 and router advertisements (RDNSS), including mesh routers or access points that advertise their own DNS settings. Review static devices and VPN profiles.
  4. Renew the test client's lease or reconnect it, remove its temporary manual DNS override, and confirm the assigned resolver addresses. Test a query without @server and confirm it appears in kudurru's query log.
  5. Renew other clients gradually and observe both servers. Keep the old server running at its original address for rollback. Use an observation period of at least the longest DHCP lease and relevant DNS cache lifetime, plus your normal usage cycle.

Do not list a public resolver or the old server as a supposed standby if you require kudurru's policy on every query. Clients can use any advertised resolver. For redundancy, advertise servers with the same intended policy and test each independently.

Roll back

Roll back if clients lose required DNS, local applications fail, or policies differ in a way you cannot resolve during the change window.

  1. Restore the old DNS addresses in DHCPv4, DHCPv6, RDNSS, static devices and VPN profiles. Revert any encrypted-DNS endpoint changes too.
  2. If DHCP moved, use the saved DHCP plan to restore service. Disable the replacement DHCP server before re-enabling the original on the same LAN.
  3. Renew affected leases or reconnect devices. Clear client DNS caches when necessary. Restoring a DHCP option alone does not update existing clients immediately.
  4. Confirm an ordinary query reaches the old server and the failed application works again. Leave kudurru on its separate address to investigate logs and configuration.

After a successful migration, take a new backup, record the final DNS advertisements and retire the old service only after its query log stays quiet through the observation period. Use the backup instructions for ongoing recovery.

Replace imported authoritative nameservers

API imports preserve source authority by default. To advertise kudurru's DNS names immediately, select Update nameservers during import in the Tools migration wizard. DNS names starts with the hostname used to open the dashboard. It stays editable: a management proxy may resolve to a different address from the DNS service. Confirm the name resolves directly to kudurru on UDP and TCP port 53. Opening the dashboard through an IP selects Serving IPs or VIPs instead. Use detected VIPs fills the observed cluster VIP addresses when you have edge.read; you can also enter serving addresses. Discovery never replaces edits automatically.

The address option generates a stable name in every imported zone for each address and creates matching A/AAAA records. For example, 192.0.2.53 becomes ns-c0000235.home.arpa. in home.arpa, with an A record pointing to the VIP. IPv6 addresses generate AAAA records. The first address supplies the SOA primary name. Review the generated names and addresses before applying. Loopback and link-local addresses are refused; choose addresses reachable by the clients that will query these zones. Conflicting existing records are refused. Later cutovers create address records before changing authority; failed writes remain in migration history. Zones with custom record-set selectors require explicit DNS names.

The CLI can use the destination context with --update-nameservers, discover VIPs with --use-vips (requires edge.read), or accept repeatable --nameserver-address 192.0.2.53 --nameserver-address 2001:db8::53. Explicit DNS names use repeatable --nameserver dns1.example.com --nameserver dns2.example.com on import technitium or import pihole. The first name becomes SOA MNAME; all names replace the zone's apex NS set. Existing records, the SOA mailbox and timers, and zone access policies are preserved.

Alternatively, keep the source names during parallel validation. Tools → Migration history records each API import, its source server origin, actor, time, per-object outcomes, warnings and subsequent cutovers. Source credentials are never saved. Open Review run → Decommission source nameservers, review the suggested hostname or choose serving IPs/VIPs, then review the changes and apply them when ready. Failed writes remain visible, and successful writes remain in place; preview again before retrying. Zones reimported by a newer run, recreated, or whose authority was edited are refused by older runs. Cutover checks journal capacity before writing DNS changes. If a run has no room for another complete attempt, start a new run with fewer zones.

For imports made before migration history was available, choose Track previous imports, select the recognized API imports, and review them before tracking. This adds a run for their current state without reimporting records; the original import time and source URL are unknown. It only offers API-managed zones whose names match the API importer's stable naming format. File-managed and Kubernetes-managed objects must be edited at their source. On SQLite, tracking a selection is atomic: every selected zone must still match its reviewed UID, version and authority, and you need write access to every zone. A stale or denied zone leaves the entire selection untracked. Refresh and review the selection again before submitting another attempt. Saved CLI previews must retain each zone's uid and resourceVersion.

CLI users can save and review a versioned cutover plan. A preview without nameserver options uses the destination context hostname or IP. Use explicit names, addresses, or --use-vips to override it:

kudurru import runs
kudurru import runs <run-id>
kudurru import decommission <run-id> \
  --nameserver dns1.example.com --nameserver dns2.example.com \
  -o json > cutover.json
kudurru import decommission <run-id> --apply --plan-file cutover.json

To track older imports first:

kudurru import track-existing -o json > previous-imports.json
# Review items; remove any zones you do not want to track.
kudurru import track-existing --apply --plan-file previous-imports.json

Use names that resolve to kudurru's serving addresses, including IPv6 where applicable. Existing hostname address records, parent/registrar delegations, glue and delegations in other zones need separate updates. The flow changes the imported zones' apex NS and SOA primary and adds address records for generated names when serving IPs/VIPs are selected. It does not shut down the source, change DHCP DNS advertisements, or migrate DNSSEC signing. Wait for relevant TTLs and validate authoritative answers before retiring the old service.

Source: docs-site/content/migrate/cutover.md