Make sure the service is running

Fresh installations leave updns disabled. Enable and save/apply it under Services → Turnout DNS in LuCI, then check its status. The default DNS listening port is 153.

If it is not running, check general.enabled, logs, and port conflicts.

/etc/init.d/updns status
logread -e updns

Audit a domain

Run the audit on the router; it queries A and AAAA separately by default. This example from the project guide omits decorative separators. Rules, addresses, and sets depend on your environment.

Cache Hit means valid cache; Local Answer means local hosts or DHCP data; Upstream Query means the query was forwarded to an upstream for resolution; Prefetch Hit means waiting for and reusing a prefetch result.

Command

updns google.com

Example output

From the project guide; actual output depends on configuration, cache, and network conditions.

╭─ updns ──────────────────────────────────────────╮
│  DOMAIN
│  Domain       : google.com.
│  Query Type   : A / AAAA
│  Query Path   : Cache Hit
│
│  DNS RESOLUTION
│  Matched Rule : US Access
│  Upstream     : A=Google-DoH / AAAA=Google-DoH
│  Action       : IPv4 + IPv6
│  Response     : NOERROR
│
│  NFT SETS
│  IPv4         : inet/fw4/us4
│                 ✓ Contains resolved IPv4
│  IPv6         : inet/fw4/us6
│                 ✓ Contains resolved IPv6
│
│  ANSWERS
│  • 142.251.219.142
│  • 2607:f8b0:4005:818::200e
╰──────────────────────────────────────────────────╯

How to read it

Reading top to bottom: US Access matched; both address types came from cache sourced from Google-DoH; NOERROR is the response code; NFT SETS shows the example sets and whether they contain the addresses; ANSWERS lists the results. The cache source is not necessarily an upstream contacted during this query.

Keep investigating

You can specify a record type, such as MX. Failures are reported per type; when only one of A or AAAA succeeds, the command may still exit successfully.

When the service is running, the audit uses its rules and cache. Otherwise it resolves independently, so it cannot show the running service's cache. Queries may also update nftables sets.

To adjust routing, check the domain list, rule order, and upstreams, then audit again. The complete guide covers status, logs, and troubleshooting in more detail.

updns google.com MX
Continue to the complete guide