brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: resolvectl nta skips DNSSEC checks for one domain whose signatures are broken

Network and access
~/tips/tip-dns-resolvectl-nta-dnssec-broken

sudo resolvectl nta eth0 example.com

Tells systemd-resolved to skip DNSSEC validation for one domain on one link.

With DNSSEC validation on, a domain with a broken signature simply fails to resolve. That is by design, but it is annoying when the owner of the domain made a mistake and you need the site now.

A negative trust anchor tells the resolver not to validate one domain on one link:

sudo resolvectl nta eth0 example.com

The syntax is nta [LINK [DOMAIN...]], and the manual describes it as configuring additional per-interface DNSSEC NTA domains. Run it without domains to read the current list. The commands dns, domain and nta take a single empty string to clear their list:

sudo resolvectl nta eth0 ""

Before you reach for it, check that the failure really is DNSSEC. dig +cd example.com asks the server to skip validation, and if that answers while a normal query fails, validation is the cause.

Caveat: this switches off a security check for that domain, so a forged answer would be accepted too. Treat it as temporary and remove it when the owner has fixed their records. resolvectl revert eth0 undoes all per-interface settings, this one included, and everything goes away anyway when the interface disappears.

Further reading: resolvectl(1) manual

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link