Persistent DNS SERVFAIL during both HTTP-01 and DNS-01 validation — healthy authoritative BIND servers, correct delegation, packet captures available

Hello everyone,

I'm looking for assistance with a persistent Let's Encrypt validation issue involving mitranet.nl.

I have been administering UNIX/Linux systems and DNS infrastructure for more than 25 years, and have spent considerable time investigating this issue. At this point, I would particularly appreciate input from people familiar with Let's Encrypt's distributed DNS validation infrastructure.

The puzzling part is that both HTTP-01 and DNS-01 fail with DNS SERVFAIL, although the authoritative nameservers, DNS delegation, public recursive resolution and normal website operation all appear healthy.

The problem is reproducible with Let's Encrypt's staging environment as of 22 October 2026.

1. Domains and current certificate

Domain: mitranet.nl

Relevant hostnames:

  • mitranet.nl
  • www.mitranet.nl

Current production certificate:

Property Value
Certbot certificate name www.mitranet.nl
Current SAN DNS:www.mitranet.nl
Key type RSA
Issued 29 August 2026
Expires 27 November 2026, 12:29:06 UTC
Original renewal authenticator standalone
Original challenge HTTP-01

The existing production certificate remains valid, and HTTPS works normally.

The original certificate was obtained successfully using the standalone HTTP-01 authenticator. We subsequently attempted to expand it to cover both the apex and www names using RFC2136 DNS-01.

Those attempts failed, but importantly, a dry-run renewal using the original HTTP-01 configuration now fails as well.

No production certificate has been replaced during these investigations.

2. Authoritative DNS architecture

Two geographically and operationally separate authoritative DNS servers are configured:

Role Hostname Public IPv4 Platform
Primary vps.wezenaar.org 89.149.243.129 Rocky Linux VPS, BIND 9.18.33
Secondary vps2.wezenaar.org 217.121.29.231 pfSense Plus 26.07, BIND 9.20

The primary is hosted at an external VPS provider. The secondary is hosted on a residential Ziggo connection in the Netherlands.

Both nameservers are publicly authoritative on UDP and TCP port 53.

The secondary receives its zones through normal BIND zone transfers/NOTIFY.

The parent .nl zone delegates mitranet.nl to:

mitranet.nl.  3600  IN NS vps.wezenaar.org.
mitranet.nl.  3600  IN NS vps2.wezenaar.org.

Both nameserver hostnames are under wezenaar.org, outside the delegated zone.

Their publicly resolvable A records are:

vps.wezenaar.org.   IN A 89.149.243.129
vps2.wezenaar.org.  IN A 217.121.29.231

These addresses were independently verified using Cloudflare, Google Public DNS and Quad9.

There are no AAAA records for these nameservers.

No DS record is published for mitranet.nl at the parent. The zone is unsigned.

Both authoritative servers report the same current SOA serial:

2026091939

The SOA MINIMUM / negative-caching TTL is currently 60 seconds.

3. Actual DNS records

Both authoritative servers return the correct IPv4 address:

www.mitranet.nl. 86400 IN A 89.149.243.129
mitranet.nl.     86400 IN A 89.149.243.129

Neither name has an AAAA record.

www.mitranet.nl is not a CNAME.

Direct nonrecursive queries to both public authoritative IP addresses return:

  • A: NOERROR, correct address, authoritative (aa)
  • AAAA: NOERROR, no AAAA answer, SOA in authority section
  • CNAME: NOERROR, no CNAME answer, SOA in authority section
  • SOA: matching serial 2026091939

The lack of AAAA records is intentional and should not cause an A/AAAA SERVFAIL.

4. Current failure: original HTTP-01 renewal

The original renewal configuration has not been converted to DNS-01.

Relevant settings from:

/etc/letsencrypt/renewal/www.mitranet.nl.conf

authenticator = standalone
server = https://acme-v02.api.letsencrypt.org/directory
key_type = rsa
pre_hook = /bin/systemctl stop nginx
post_hook = /usr/local/sbin/ngcleancache.sh

The post-hook contains:

systemctl restart nginx

[ this used to be more, but we've fallen back to direct serve instead of using cache ]

The normal automated renewal is handled by certbot-renew.timer, scheduled daily at 03:00 Europe/Amsterdam time.

The service executes:

/usr/bin/certbot renew --noninteractive \
  --no-random-sleep-on-renew \
  $PRE_HOOK $POST_HOOK $RENEW_HOOK \
  $DEPLOY_HOOK $CERTBOT_ARGS

The additional global Certbot arguments are empty.

For testing, I executed:

certbot renew \
  --cert-name www.mitranet.nl \
  --dry-run \
  --non-interactive \
  --no-random-sleep-on-renew

On 22 October 2026 at approximately 13:27:14 CEST, this produced:

Processing /etc/letsencrypt/renewal/www.mitranet.nl.conf

Simulating renewal of an existing certificate for www.mitranet.nl

Certbot failed to authenticate some domains
(authenticator: standalone).

The Certificate Authority reported these problems:

Domain: www.mitranet.nl
Type: dns

Detail: DNS problem: SERVFAIL looking up A for
www.mitranet.nl - the domain's nameservers may
be malfunctioning; DNS problem: SERVFAIL looking
up AAAA for www.mitranet.nl - the domain's
nameservers may be malfunctioning

Failed to renew certificate www.mitranet.nl
with error: Some challenges have failed.

All simulated renewals failed.
1 renew failure(s), 0 parse failure(s)

The attempt finished at approximately 13:27:17 CEST.

Nginx was automatically restarted and verified active afterwards.

The certificate remains unchanged.

This appears to be a DNS-resolution failure before HTTP-01 validation can retrieve the challenge token. I have not seen evidence of a failure involving the actual challenge file or HTTP response.

5. DNS-01 failures produce similar errors

Before investigating the original HTTP-01 renewal, I attempted to expand the certificate using the Certbot RFC2136 authenticator.

The intended names were:

www.mitranet.nl
mitranet.nl

Example command:

certbot certonly \
  --dns-rfc2136 \
  --dns-rfc2136-credentials \
    /etc/letsencrypt/rfc2136-mitranet.ini \
  --dns-rfc2136-propagation-seconds 180 \
  --cert-name www.mitranet.nl \
  --expand \
  --key-type rsa \
  --non-interactive \
  --dry-run \
  -d www.mitranet.nl \
  -d mitranet.nl

I tested propagation intervals including 120 and 180 seconds.

The RFC2136 dynamic DNS updates work correctly:

  • Certbot creates the ACME challenge TXT records on the primary.
  • The secondary receives the changes.
  • Both authoritative servers return the expected TXT values.
  • The TXT records are subsequently cleaned up correctly.

Nevertheless, Let's Encrypt staging reports DNS SERVFAIL, sometimes during secondary validation, involving the challenge TXT records and/or other DNS lookups.

This is why I no longer believe the RFC2136 authenticator itself explains the issue.

The common factor is DNS resolution by the CA, not the selected ACME challenge method.

6. Independent recursive DNS tests

I queried the following recursive resolvers:

Resolver Address A record SOA
Cloudflare 1.1.1.1 Correct NOERROR
Google 8.8.8.8 Correct NOERROR
Quad9 9.9.9.9 Correct NOERROR
OpenDNS 208.67.222.222 Correct NOERROR

All four correctly resolve:

www.mitranet.nl. A 89.149.243.129

They return normal NOERROR/NODATA for the non-existent AAAA record.

All four have also returned the current SOA serial 2026091939.

An earlier Quad9 lookup returned an older cached SOA serial (2026091926), but a subsequent lookup returned the current serial. I mention this only as a historical observation, not as an established explanation for SERVFAIL.

7. Full DNS delegation trace

A direct iterative trace was performed:

dig @1.1.1.1 +trace www.mitranet.nl A \
  +time=5 +tries=2

It completed successfully:

. → nl. → mitranet.nl. → www.mitranet.nl.

The .nl nameservers returned the expected delegation:

mitranet.nl. 3600 IN NS vps.wezenaar.org.
mitranet.nl. 3600 IN NS vps2.wezenaar.org.

The trace reached the authoritative infrastructure and returned:

www.mitranet.nl. 86400 IN A 89.149.243.129

No timeouts or SERVFAIL responses were observed in that trace.

I also verified the delegation directly against the .nl parent nameservers.

DNSViz testing did not reveal an obvious delegation or authoritative-response problem in the checked responses.

8. Comparison with another zone on the same DNS servers

This is an important comparison.

The same two BIND servers are authoritative for:

djazzperado.com

That zone has:

www.djazzperado.com. IN A 89.149.243.129
djazzperado.com.     IN A 89.149.243.129

It uses the same public authoritative nameserver hostnames and the same server IP addresses.

A trace for www.djazzperado.com completes successfully, just as the one for www.mitranet.nl does.

However, Let's Debug's DNS-01 tests for djazzperado.com have reported successful results, whereas tests for mitranet.nl have repeatedly reported intermittent SERVFAIL.

Relevant differences include:

  • .nl versus .com parent delegation.
  • mitranet.nl uses an RFC2136 dynamically updated zone.
  • djazzperado.com is a static zone.
  • The zones have different SOA parameters and negative-cache TTLs.

I have not established that any of these differences causes the failure.

9. Firewall and filtering investigation

On the Rocky Linux VPS:

  • Public DNS is permitted on UDP/53 and TCP/53.
  • BIND is running and answering authoritative queries.
  • firewalld uses nftables.
  • A source-based blacklist exists and is processed before the public-zone accept rules.
  • Fail2Ban is enabled for several services, including SSH and mail.

I checked the Fail2Ban rules; the inspected reject rules targeted mail services, not DNS port 53.

I also investigated whether the DNS failure could be related to source-based firewall filtering.

A temporary firewall exception was tested earlier for DNS traffic, without resolving the Let's Debug failures, and then reverted.

I cannot completely exclude routing, filtering or reachability problems affecting certain source networks.

No permanent firewall changes have been made as part of this investigation.

The pfSense secondary is configured to expose authoritative BIND on the WAN interface, while its local recursive DNS services are restricted to internal networks.

10. Packet captures during actual failed validation

Several packet captures were taken on the VPS and pfSense WAN interface.

Most importantly, on 22 October 2026, a controlled HTTP-01 dry-run was performed with captures intended to cover the same validation window.

VPS capture

Interface: eth0

Capture filter:

udp port 53 or tcp port 53

Capture directory:

/var/tmp/mitranet-dual-capture-20261022-132709/

Results:

52 packets captured
62 packets received by filter
0 packets dropped by kernel

The capture began at approximately 13:27:09 CEST.

Certbot ran from 13:27:14 to 13:27:17 CEST.

No incoming DNS queries were observed in the displayed VPS capture summary.

Most captured DNS traffic consisted of the VPS querying its configured upstream resolvers for unrelated hostnames.

pfSense WAN capture

Interface: ix0

A simultaneous WAN capture was started manually before the Certbot test and stopped manually after Certbot finished.

The saved PCAP was named:

packetcapture-ix0-20261022132619.pcap

The last recorded packet timestamp was earlier than the Certbot validation interval. This alone does not prove that the capture had stopped: it may simply have recorded no subsequent matching packets.

No relevant Mitranet DNS queries were identified in the inspected pfSense capture.

Important limitation: I cannot prove from these captures that Let's Encrypt did not attempt DNS resolution. Its resolvers may have queried from other locations, received cached errors, encountered failures upstream, or experienced filtering/routing problems not visible at these capture points.

Nevertheless, the simultaneous lack of observed incoming requests is worth investigating.

Full PCAPs and Certbot logs can be provided if useful.

Furthermore, public DNS resolvers had already returned the correct nameserver addresses.

11. Related reports

I noticed several other community discussions concerning intermittent SERVFAIL during domain validation, including:

Additional information (original post exceeded the length limit)

The existing production certificate for www.mitranet.nl remains valid until 27 November 2026, but renewal currently fails even with the original standalone HTTP-01 configuration.

I have also found similar reports of intermittent SERVFAIL during Let's Encrypt secondary validation, including:

My main question: Could someone familiar with Let's Encrypt's validation infrastructure investigate why staging returned SERVFAIL for both A and AAAA lookups of www.mitranet.nl on 22 October 2026, approximately 11:27:14–11:27:17 UTC?

I would particularly like to know whether the failures originated from resolver timeouts, unreachable authoritative servers, cached errors or a specific validation perspective.

Full packet captures, DNS traces and sanitized Certbot logs are available upon request.

Thanks again for any insights.

I suspect you might be encountering a resource limit in unbound, particularly max-sent-count (unbound.conf(5) — Unbound 1.26.2 documentation).

mitranet.nl's DNS is hosted on vps.wezenaar.org and vps2.wezenaar.org.
wezenaar.org's DNS is hosted by ns-o.dns.yourhosting.nu, ns-m.dns.yourhosting.nl and ns-h.dns.yourhosting.eu.
All three yourhosting domains are hosted by ns3.firstfind.nl, ns4.firstfind.nl and ns5.firstfind.net.
firstfind.nl is hosted by ns1-08.azure-dns.com, ns2-08.azure-dns.net, ns3-08.azure-dns.org and ns4-08.azure-dns.info.
firstfind.net is hosted by ns1.yoursrs.com and ns2.yoursrs.com.
yoursrs.com is hosted by ns1.premiumdns.zone and ns2.premiumdns.zone.
for all three yourhosting domains, the dns subdomain is hosted by ns1.cldin.eu, ns2.cldin.eu and ns3.cldin.eu.

Thank you, Max. That's an interesting hypothesis, particularly given the relatively complex delegation chain involved in resolving the nameserver addresses.

One thing I am struggling to explain, however, is that the exact same DNS infrastructure successfully obtained the existing HTTP-01 certificate on 29 August 2026.

As far as I know, the relevant public nameserver delegation has not changed since then.

If Unbound's max-sent-count limit is responsible, could the difference be explained by cold versus warm resolver caches, a recent change in Unbound's resolver behavior, or a change within Let's Encrypt's validation infrastructure?

Would you recommend simplifying the nameserver dependency chain, or is there a specific diagnostic that could confirm the max-sent-count limit is being reached?

I'd prefer to establish the cause before modifying the DNS delegation.

Thanks again for looking into this.

@rickwezenaar Max knows far more about DNS than I do. Know that unbound is the resolver that Let's Encrypt uses for DNS queries. It walks your authoritative DNS tree for queries and does not cache results (except I think for extremely brief periods to avoid re-querying parts of the tree it just did).

I can readily reproduce the intermittent nature of your problem. Not that this helps but the actual errors are sometimes helpful.

The first time I ran the below test a got a "404" error as it should produce. Which means all the DNS queries worked and the needed challenge token was not found. It won't be of course because I can't place them on your server. You probably know this but just in case.

Then I got the following errors. Each certbot run followed the other by just a couple seconds.

The Certificate Authority reported these problems:
Identifier: mitranet.nl
Type: dns
Detail: DNS problem: SERVFAIL looking up A for mitranet.nl - the domain's nameservers may be malfunctioning; DNS problem: SERVFAIL looking up AAAA for mitranet.nl - the domain's nameservers may be malfunctioning

then this. Note the error includes a HTTPS URL which means LE DNS queries worked when querying for your HTTP challenge record. Your server redirected that to HTTPS and the DNS lookups when LE processed that failed.

The Certificate Authority reported these problems:
Identifier: mitranet.nl
Type: dns
Detail: 89.149.243.129: Fetching https://mitranet.nl/.well-known/acme-challenge/jxyuqMMQA2WOs4-edL5ijkL3sTQgvyN4HVvHUBRO1oM: DNS problem: SERVFAIL looking up A for mitranet.nl - the domain's nameservers may be malfunctioning; no valid AAAA records found for mitranet.nl

my last two tests repeated the earlier error

The Certificate Authority reported these problems:
Identifier: mitranet.nl
Type: dns
Detail: DNS problem: SERVFAIL looking up A for mitranet.nl - the domain's nameservers may be malfunctioning; no valid AAAA records found for mitranet.nl

Max, Mike, one additional observation that might be relevant to your max-sent-count hypothesis:

I host another domain, djazzperado.com, on exactly the same two authoritative nameservers:

  • vps.wezenaar.org (89.149.243.129)

  • vps2.wezenaar.org (217.121.29.231)

Consequently, resolving the authoritative nameserver addresses requires traversing the same underlying wezenaar.org / Yourhosting / Firstfind dependency tree.

However, djazzperado.com does not appear to suffer from the same validation failures.

There are some differences:

  • mitranet.nl: .nl parent, delegation NS TTL 3600 seconds, dynamic BIND zone, SOA negative TTL 60 seconds.

  • djazzperado.com: .com parent, delegation NS TTL 172800 seconds, static BIND zone, SOA negative TTL 3600 seconds.

Could the different parent delegation TTLs, or differences between the .nl and .com resolution paths, be sufficient to explain why Unbound intermittently reaches max-sent-count for one domain but not the other?

Alternatively, would a reproducible SERVFAIL for both domains under cold-cache resolution be expected if the underlying nameserver dependency chain is the root cause?

I'm particularly interested in a way to confirm this before changing any production DNS delegation.

After testing with unbound-host, both mitranet.nl and djazzperado.com fail to resolve most of the time (the successful times are likely due to using different auth DNS servers).

After changing target-fetch-policy from the default of "3 2 1 0 0" to "3 2 1 0 0 0 0", both domains reliably resolve. The unbound configuration that reliably resolves both your domains is:

server:
  # Disable chroot and setuid
  chroot: ""
  username: ""

  target-fetch-policy: "3 2 1 0 0 0 0"

If possible, you should simplify the DNS chain, possibly by adding the vps domains to a domain you own, adding glue records with your registrar and setting your NS records (both auth and glue) to your new vps domain.

thank you so much for your help! we are going to prepare for new delegations and registrations for those 2 domains.