Monitor live status
Connect to the OpenWrt device running updns and run updns status directly in an interactive terminal. It reads the running service through the local control interface and continuously displays the listening port, cache settings, and cache hit ranking.
When both standard input and output are terminals, the view refreshes every second. Navigate the ranking with the arrow keys, Page Up / Page Down, the mouse wheel, or the scrollbar; press q to quit. Mouse interaction requires a terminal that supports and forwards mouse events.
Command
updns statusExample output
Illustrative single frame of the interactive view; domains and values are fictional, and the layout depends on terminal size.
╭─ SERVICE ─────────────────────────────────────────────────────────╮
│ Status : Running │
│ Listen : :153 UDP / TCP │
╰───────────────────────────────────────────────────────────────────╯
╭─ CACHE ───────────────────────────────────────────────────────────╮
│ Status : Enabled │
│ Entries : 3 / 2048 │
│ Record Types : A, AAAA, CNAME, SRV, HTTPS, SVCB │
│ Prefetch : Enabled │
╰───────────────────────────────────────────────────────────────────╯
╭─ CACHE HIT RANKING ───────────────────────────────────────────────╮
│ DOMAIN TYPE HIT COUNT │
│ example.com. A 42 │
│ example.com. AAAA 15 │
│ example.net. A 4 │
╰───────────────────────────────────────────────────────────────────╯
q quit | Wheel/↑↓ PgUp/PgDn | 3 entries | 1sHow to read it
The 1s in the footer indicates a one-second refresh interval; 3 entries is the cache entry count in this example. The view keeps updating: this is just one frame. Press q to return to the command line.
Print a one-time snapshot
When standard output is redirected or piped, the command prints one text snapshot instead of opening the live view. The pipeline below demonstrates that format; domains and values are illustrative, not readings from a device.
Command
updns status | catExample output
Illustrative data based on the status output format; actual content depends on configuration, cache, and terminal width.
╭─ updns ──────────────────────────────────────────╮
│
│ SERVICE
│ ──────────────────────────────────────────────
│ Status : Running
│ Listen : :153 UDP / TCP
│
│ CACHE
│ ──────────────────────────────────────────────
│ Status : Enabled
│ Entries : 3 / 2048
│ Record Types : A, AAAA, CNAME, SRV, HTTPS, SVCB
│ Prefetch : Enabled
│
│ CACHE HIT RANKING
│ ──────────────────────────────────────────────
│ DOMAIN TYPE HIT COUNT
│ example.com. A 42
│ example.com. AAAA 15
│ example.net. A 4
│
│ Showing 3 of 3 entries
│
╰──────────────────────────────────────────────────╯How to read it
SERVICE shows service status and the UDP/TCP listening port. CACHE shows whether caching is enabled, entry count and capacity, cacheable query types, and prefetch status. Here, 3 / 2048 means 3 current cache entries out of a capacity of 2048.
Read CACHE HIT RANKING
Entries are ranked by cache hit count, highest first. DOMAIN is the queried name, TYPE is the DNS record type, and HIT COUNT belongs to that cache entry. In the example, the A and AAAA entries for example.com are separate, with 42 and 15 hits respectively.
This count is not website traffic or a total of all DNS queries: it belongs to the current entry. Its history is not retained when the entry is deleted; a service restart or reload rebuilds the in-memory cache. Reading status does not increase hit counts.
Entries can include expired records retained for refresh, so the count does not mean every entry can still be served directly. A (none) ranking means there are no entries to list; that alone does not establish a service failure.
Interpret the settings
Record Types shows the running cache type configuration, not the only types that can be resolved. Unselected query types still resolve normally but do not read, write, or prefetch the DNS cache. Prefetch Enabled means proactive prefetch is enabled, not that every entry is refreshing right now.
If an expected domain is missing, check that caching is enabled, its query type is listed, and the query actually reaches updns. If a client queries dnsmasq first, a dnsmasq cache hit may never be forwarded to updns; TTL-zero responses are not cached either.
To follow a specific resolution, run updns example.com on the router to inspect the rule, query path, and response. An audit query can update the cache or nftables sets; unlike the status command, it is not just reading status.
When status is unavailable
If the view shows Unavailable and an error, it does not present stale data as current. Interactive mode keeps retrying and updates when it recovers; non-interactive mode prints one snapshot and exits with a nonzero status. Unavailable does not necessarily mean the service has stopped: the control interface may be unreachable.
Check service status and logs, then investigate the reported error. The pipeline above is for viewing output only: in common shells its exit status may come from cat, so it should not be used to judge whether updns status succeeded. A script can redirect updns status output directly to a file and immediately inspect its exit status.
Snapshot output can contain full domains and reveal network activity. Remove domains and other sensitive information before saving or sharing it. Long names may appear truncated in the interactive view depending on terminal width.
/etc/init.d/updns status
logread -e updns