Skip to content
Contents
GuidesOpenWrt

Unbound returns SERVFAIL with DNSSEC enabled. Check the trust anchor path

After enabling DNSSEC, if you receive SERVFAIL, first verify the system time and ensure Unbound has actually loaded the trust anchors. Simply seeing root.key on the disk does not confirm it is active.

Applies to · GL-MT6000 · OpenWrt 25.12.5 · Unbound 127.0.0.1:1053

What to check

On the trusted client, send queries directly to this Unbound instance, testing both signed and unsigned domains.

Connect over Ethernet and run the following commands in an SSH session on the router.

date -u
logread -e unbound

How to interpret the result

Extract the trusted anchor path from the boot log and verify the read and write permissions of the file and associated service account. If the system time is incorrect, perform time synchronization first. If the time is correct and the log explicitly indicates a missing file, update the configuration to point to the correct file and retain the original file unchanged.

Verify and recover

Query a correctly signed zone and a deliberately invalid DNSSEC test zone. The first should resolve and the second should fail validation. Restore the saved anchor file and permissions if needed, keeping validation enabled.

Related guide · Verify that your OpenWrt DNS resolver validates DNSSEC

Explore hardware

Comments