Fixing SERVFAIL DNS Resolution for AWS Console with Pi-hole + Unbound
Part of the Complete Pi-hole Guide
This is one of several Pi-hole guides on this site. See the Complete Pi-hole Guide for the full collection including Docker setup and DNS config.
If you're running Pi-hole with Unbound in Docker containers and hit a SERVFAIL when trying to access the AWS Console, this post is for you.
I run Pi-hole and Unbound in side-by-side containers using Docker Compose. Recently, DNS lookups to console.aws.amazon.com began failing intermittently with a SERVFAIL.
π₯ The Problemβ
Access to console.aws.amazon.com failed, and Pi-hole logs showed:
query\[A] console.aws.amazon.com from 172.16.2.35
cached console.aws.amazon.com is <CNAME />
...
forwarded console.aws.amazon.com to 192.168.0.2
reply error is SERVFAIL
Unbound logs were repetitive and useless at first glance:
info: generate keytag query \_ta-4f66-9728. NULL IN
This pointed to: DNSSEC validation failure, specifically with Unboundβs trust anchor setup.