Skip to content
Sign inDashboard

Offline behavior and troubleshooting

The node needs opdns only to receive changes. Every connection is outbound from the node. When opdns is unreachable:

  • The node keeps resolving with the last good profile and list artifact, which it saved in its data directory (profile.json, lists/). They survive restarts. The list signing keys that it learned (lists_keys.json) also survive. After a reboot without the internet, the node can therefore still verify its lists.
  • The node keeps logging locally.
  • The node reconnects its link with backoff (1 second up to 5 minutes, with random jitter). As a safety net, it pulls the profile every cloud.profile_poll (15 minutes).
  • The status page and opdns-node status show a warning: “The node cannot reach the cloud since …. It resolves with the last profile and lists.”
  • When the link is gone, the dashboard shows the node offline. After 10 minutes, the owners of the account get an offline alert email. They get another email when the node is back. Cloud logs for the node wait in its queue (up to 24 hours, or the shorter window that the profile sets). The cloud delivers them when the node reconnects.

An enrolled node reports its link to opdns as one of these phases. The phase is the same in all these places:

  • The local page (Cloud link, with a one-line detail).
  • opdns-node status and /api/status (link.phase, link.summary).
  • /healthz.
  • The metric opdns_node_link_phase{phase}.
  • A log line at start and on every change.
Phase Means
unenrolled no identity: a standalone node, or not enrolled yet
connecting opening the link
connected the link is up (the detail says since when)
backoff the link dropped. The next attempt is at the time shown
offline down for a minute or more (two health intervals of the cloud, when the dashboard also shows it offline). The detail gives since when, and the next attempt
revoked the token was revoked in the dashboard. The node tries again at long intervals
stopped the node is shutting down

/healthz carries the phase (link.phase, with since, until and offline_since when they apply). It never carries the error text, so a health check can alert on offline without showing the cause. A link that is down does not make the node unhealthy, because the node keeps resolving.

Unbound cannot reach authoritative servers, so new names fail. Unbound serves the names in its cache, including expired ones for up to a day (serve-expired). The node answers blocked names locally, as usual.

A device without a real-time clock boots with a wrong date. DNSSEC validation then fails. NTP then cannot resolve its server, so the clock never gets corrected. The node stops this loop itself:

  1. While the clock is implausible (clearly wrong), the node runs Unbound without DNSSEC validation.
  2. The node compares the clock with NTP servers given as IP addresses (clock.ntp_servers, default the anycast NTP of Cloudflare). It also compares it with the timestamp of the signed list artifact and with its own build time. A clock that is more than an hour earlier than the creation time of the newest list artifact is implausible. A clock that is a few minutes slow is not. Validation therefore stays on when a new list arrives.
  3. When the clock is within clock.max_skew (1 hour), the node turns validation on.

If your network blocks outbound NTP, set clock.ntp_servers to the IP address of a reachable server.

Symptom Cause and fix
bind: address already in use on port 53 Another DNS server is on the host. When the node can see it, the message names it (for example systemd-resolve (pid 412) holds port 53/udp) and says how to free the port. See Free port 53.
unbound executable "unbound" not found Install Unbound or set unbound.binary (binary installs only).
exits with status 2, “this node is not set up yet, so it is not serving DNS” Enroll the node or configure standalone mode.
rules apply but no blocklists The node has no trusted list key. With lists.trust_cloud_key: false, lists.public_keys must hold the signing key. On a first start without the internet, the node did not learn the key yet.
/healthz fails Unbound does not answer, or the node did not load a profile or lists yet. See the log of the node.
many SERVFAIL right after boot on a Pi The clock gate is active. Wait until the clock is correct.
a device gets REFUSED with EDE 18 The address of the device is outside the allowed networks of the node (often a global IPv6 address). See Network access.
the status page answers 403 or 421 You opened it from outside your network, or by an unknown host name. See Network access.
opdns-node status shows a profile signature error The node refused a profile that was unsigned or signed by a key that it does not trust. It kept its last good profile. See Profile signing keys.
the ipv6 row of the local page says IPv4 only The host has no IPv6 route, so Unbound asks authoritative servers over IPv4 only. See IPv6 for upstream queries.
opdns-node status shows a lists error about an older version A standalone node found a latest.json that is older than its artifact, and kept its current lists. See List updates and rollbacks.

The node writes logs to standard error, in JSON by default. For logs that are easier to read, set log_format: text. For more detail, use --log-level debug.