Move from AdGuard Home to kudurru

Back up AdGuard Home, check filter-rule compatibility, migrate clients and exceptions, rebuild rewrites and upstreams, and test a DNS cutover.

Bring your DNS filters and client settings into kudurru's lists, groups, policies and zones. kudurru understands DNS adblock rules and the DNS modifiers listed below, but it does not implement AdGuard Home's full filtering language. Treat this as a configuration migration with explicit behavior checks.

Before you start: complete preparation and CLI setup. Keep AdGuard Home serving the network. kudurru import adguard --file AdGuardHome.yaml previews a supported subset of the YAML configuration offline. Review the offline conversion guide for selection, application, and explicit losses. The manual steps below remain useful for unsupported semantics; the working directory is never imported.

Compare the features you use

AdGuard Homekudurru v0.2.0Migration action
DNS blocklists and allowlistsBlockList with mode: block or mode: allowCopy URLs; attach the lists to policies
Custom filtering rulesInline sources or structured entriesCheck modifiers and exception scope before copying rules
Persistent clients and per-client settingsIP/CIDR ClientGroup plus PolicyReserve addresses; additional policies need a key
ClientID, MAC and hostname identificationA ClientID from the DoT or DoQ server name or the DoH path, on listeners that turn it on. MAC and hostname matchers need a source that tells kudurru which device has an address (client identity)Turn on client IDs for encrypted clients as in section 5; otherwise use real IPv4/IPv6 addresses or subnets
DNS rewritesPrimary zones and records; Policy.spec.rewrites for forwarded names; $dnsrewrite rules in block listsRecreate local records as a zone, or as policy rewrites when only some clients get the answer
Blocked services and safe searchPolicy service/category blocking and safe searchMatch catalog IDs and supported engines explicitly
Upstreams and bootstrap serversNamed groups, strategies, bootstrap and suffix rulesRecreate configuration; retest private reverse DNS
DoT, DoH and DoQNative listeners; also DoH3Configure listener certificates and client endpoints separately
DHCPOpt-in DHCPv4 on Linux with the SQLite or Kubernetes store; no DHCPv6Configure kudurru or another DHCP server and preserve leases and reservations before retiring AdGuard Home
Safe browsing / parental-control lookup servicesNo equivalent remote lookup servicesSelect suitable block lists; do not assume identical coverage
Query history and usersSeparate kudurru logs and accountsPreserve old data separately; create new credentials and API tokens

See the full feature comparison, including DNSSEC and license differences.

1. Back up and inventory AdGuard Home

  1. Save AdGuardHome.yaml and its working/data directory, including filters and any history you need. Use a consistent snapshot or a brief service stop for the copy, then keep AdGuard Home serving the network.
  2. Record enabled blocklist/allowlist URLs, custom rules and DNS rewrites. Keep disabled rules and comments in your inventory.
  3. Record persistent client identifiers, per-client upstreams, service blocks, safe-search settings, schedules, cache settings and log privacy.
  4. Save upstream/bootstrap/private reverse-DNS settings and encrypted DNS hostnames, ports, certificates and paths. Save DHCP leases and reservations if this server provides DHCP.

See the upstream configuration reference. The source backup is for recovery and inventory; do not rename it to kudurru.yaml or send it to kudurru restore.

2. Audit filtering rules before moving them

Source rulekudurru v0.2.0 behaviorMigration action
||tracker.example^Domain and all subdomainsSupported
@@||cdn.example^Exception within its own block-list objectUse a separate allow-mode list when it must override other lists
0.0.0.0 tracker.example or plain tracker.exampleExact-name match by defaultUse a wildcard/suffix entry if you need subdomains
*.tracker.exampleMatches the apex as well as subdomainsCheck that this matches your intent
/^ads[0-9]+\./RE2 regular expression, up to 1,000 per listCheck regex compatibility
$important, $badfilter, $dnstype, $client, $ctag, $denyallow, $dnsrewriteApplied. $client matches an address, a prefix, a client ID or a client name that kudurru knows; $ctag matches tags that an inventory source reportsTest each rule against a real client; $badfilter and @@ act inside their own block-list object
An unknown modifier, or a known modifier with a value that kudurru cannot readThe whole rule is skipped and counted in status.invalidRebuild the behavior as groups, policies or zone records
Hosts lines returning a non-blocking addressCounted as unsupported rewritesCreate explicit zone records where appropriate
Cosmetic filters and URL/path rulesInvalid for DNS filtering and skippedUse a DNS-specific list instead

Exception scope changes. AdGuard Home merges filtering rules; a custom exception can cancel a block from a downloaded filter. In kudurru, @@ in one block-list object only cancels matches from that object, including its other sources. $badfilter has the same scope: it cancels a rule of its own block-list object. To make an exception win across the selected lists, put a positive domain rule in a mode: allow list and reference it from allowListRefs.

Inspect both status.unsupported and status.invalid, plus each source's fetch status. A successful download does not prove equivalent protection. Do not treat a partially understood filter as a complete migration.

3. Create the baseline lists and policy

Save as adguard-migration.yaml. Replace the sample filter URL with your current enabled sources. This example deliberately puts a global exception in a separate allow list.

apiVersion: kudurru.io/v1alpha1
kind: BlockList
metadata: {name: migrated-filter, namespace: default}
spec:
  mode: block
  sources:
    - name: dns-filter
      url: https://adguardteam.github.io/HostlistsRegistry/assets/filter_1.txt
      format: adblock
    - name: custom-rules
      format: adblock
      inline:
        - '||tracker.example^'
---
apiVersion: kudurru.io/v1alpha1
kind: BlockList
metadata: {name: migrated-exceptions, namespace: default}
spec:
  mode: allow
  sources:
    - name: global-exceptions
      entries:
        - value: '*.needed.tracker.example'
          type: wildcard
          comment: Allow this endpoint and its subdomains across selected lists
          origin: migrated
---
apiVersion: kudurru.io/v1alpha1
kind: Policy
metadata: {name: default, namespace: default}
spec:
  clientGroupRefs: [default]
  blockListRefs: [migrated-filter]
  allowListRefs: [migrated-exceptions]
  blockMode: zeroIP
kudurru apply -f adguard-migration.yaml
kudurru get blocklists -o yaml
kudurru query tracker.example A --client 192.0.2.10
kudurru query needed.tracker.example A --client 192.0.2.10

If kudurru apply refuses every document with unavailable: current writable serving generation unavailable or generation_pending, nothing was applied: run it again after a few seconds (apply results). A list whose URL kudurru cannot download, or does not accept as a list, is stored and blocks nothing until a download succeeds: kudurru lists list shows 0 entries for it and kudurru get blocklists -o yaml shows the download error under Degraded (what counts as a failed download).

The first name must block: its kudurru status line names the list and the rule. The second must not: the allow list wins, so the status is forwarded or cached and names no list. The allowed .example name can still get NXDOMAIN from the upstream because it has no public DNS record. Repeat the test with real exceptions.

Use the seeded policy's namespace, as explained in object ownership. Updating this policy replaces its original list references; preserve other settings you need. Structured entries on custom lists live in their source entry browser; use Filtering > Allowlist or Denylist for entries managed through the dedicated domain pages.

4. Recreate per-client behavior

For a TV that used its own persistent-client settings, save this as adguard-tv.yaml. Install a suitable key before creating the additional policy. Use a reserved address and add the corresponding IPv6 matcher if the device uses IPv6 DNS.

apiVersion: kudurru.io/v1alpha1
kind: ClientGroup
metadata: {name: living-room-tv, namespace: default}
spec:
  clients:
    - {ip: 192.168.1.40, name: Living room TV}
---
apiVersion: kudurru.io/v1alpha1
kind: Policy
metadata: {name: living-room-tv, namespace: default}
spec:
  clientGroupRefs: [living-room-tv]
  blockListRefs: [migrated-filter]
  allowListRefs: [migrated-exceptions]
  upstreamGroup: default
  blockedServices: [tiktok]
  safeSearch: true
kudurru apply -f adguard-tv.yaml
kudurru query tracker.example A --client 192.168.1.40
kudurru query needed.tracker.example A --client 192.168.1.40

A specific group's policy does not inherit the default policy's lists. When multiple policies apply, list references merge and the highest priority decides individual settings. Client-group matching uses tiers, so an exact IP takes precedence over a broader subnet group.

Map blocked services by reviewing Filtering > Policies, rather than assuming AdGuard's IDs and domain coverage are identical. kudurru ships its own catalog, supports category exceptions and safe search, and offers an optional runtime AdGuard service catalog download. See blocked services and safe search.

For schedules, use Policy.spec.schedule with weekdays, start/end and an IANA time zone. A policy applies inside that window; the default policy is the fallback when no candidate is active. Recheck both sides of a window instead of assuming an AdGuard blocking-pause schedule has the same meaning.

5. Recreate upstreams, local rewrites and encryption

In DNS > Upstreams, configure default, any client-specific groups, bootstrap servers and conditional forwarding. If you configure files, merge this example into the installed kudurru.yaml before starting the server; do not replace its listener, store or credential settings:

upstreams:
  groups:
    default:
      servers: ["tls://1.1.1.1", "tls://9.9.9.9"]
      strategy: parallel_best
    lan:
      servers: ["192.168.1.1:53"]
      strategy: strict
  conditional:
    "[/home.arpa/1.168.192.in-addr.arpa/]": lan
  bootstrap: ["1.1.1.1:53", "9.9.9.9:53"]

Use the suffixes and private reverse resolver for your actual network; add IPv6 reverse suffixes when applicable. parallel_best is the default; strict, random and rtt_weighted are alternatives. Preserve deliberate upstream filtering and ECS choices. Avoid a loop through a router that forwards DNS back to kudurru. See upstream settings. Persistent settings-file and environment overrides can take precedence over the base file; check effective values in the dashboard.

For a local rewrite such as nas.home.arpa → 192.168.1.10, create a primary home.arpa. zone and add the record, following local zone creation. Recreate CNAME and AAAA records too. A primary zone owns the entire suffix and answers before filtering: it does not preserve arbitrary wildcard, record-type-specific or per-client AdGuard rewrite behavior. For those, use Policy.spec.rewrites, which answers an exact name or *.suffix for the client groups of one policy, or a $dnsrewrite rule in a block list. Both apply to names that kudurru forwards or resolves, not to names in its own zones; see response processing.

Encrypted upstream URLs do not enable encrypted client listeners. Configure DoT/DoH/DoQ/DoH3 listeners, certificates and firewall rules using encrypted transports. Test a client with its real hostname/path and certificate trust.

AdGuard ClientIDs can move with those clients. Set clientIDDomain on a DoT or DoQ listener and clientIDs: true on a DoH or DoH3 listener, then add a clientID matcher to a client group: phone.dot.example.com and https://dns.example.com/dns-query/phone both select phone, unless an IP, MAC, CIDR, hostname or name-glob matcher matches the address the query arrives from: the first matching tier wins, and client IDs come after those. A catch-all 0.0.0.0/0 or ::/0 CIDR comes after the client ID. The DoT and DoQ certificate must cover the client names, usually with a wildcard. A client ID selects a policy and is not authentication. kudurru reads it on listeners that it terminates itself; client identity has the settings and the limits behind a TLS-terminating edge.

6. Validate and switch

Set query-log privacy/retention and check cache sizing before moving traffic. If AdGuard Home serves DHCP, follow the DHCP handoff with your saved leases and reservations; keep DNS running during the handoff.

Complete the validation checklist, especially cross-list exceptions, every custom client, local rewrites, private reverse DNS and actual encrypted endpoints. Then use the cutover procedure. Keep AdGuard Home and its backup until the observation period ends; use rollback if required.

Source: docs-site/content/migrate/adguard-home.md