# DNS Problem: SERVFAIL

**URL:** <https://community.letsencrypt.org/t/dns-problem-servfail/151532>\
**Category:** Help\
**Created:** [May 11, 2021, 7:44pm UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532 "2021-05-11T19:44:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![xoric](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/xoric/32/49580_2.png) [@xoric](https://community.letsencrypt.org/u/xoric)\
**Post date:** [May 11, 2021, 7:44pm UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/1 "2021-05-11T19:44:04Z")

</div>

When I try to refresh/renew the Letsencrypt certificate on my domain using SSL It! I get an error like noted below. I'm the owner and hoster of the domain, so I have full control. Never had this issue before, and I can't find what exactly is wrong with the DNS settings/configuration.

My domain is: ruimtebot.nl

I ran this command: Update certificate from within plesk using the ssl-it extension

It produced this output:  
Invalid response from [https://acme-v02.api.letsencrypt.org/acme/authz-v3/13036873672](https://acme-v02.api.letsencrypt.org/acme/authz-v3/13036873672).

Details:  
Type: urn:ietf:params:acme:error:dns

Status: 400  
Detail: During secondary validation: DNS problem: SERVFAIL looking up TXT for \_acme-challenge.ruimtebot.nl - the domain's nameservers may be malfunctioning

I can login to a root shell on my machine (yes or no, or I don't know): Yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): Plesk

Thanks in advance!  
XORIC

---

<div class="post-metadata">

**Author:** ![petercooperjr](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/petercooperjr/32/84698_2.png) [@petercooperjr](https://community.letsencrypt.org/u/petercooperjr)\
**Post date:** [May 11, 2021, 8:09pm UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/2 "2021-05-11T20:09:11Z")

</div>

The "secondary validation" failing implies that the primary validation worked, meaning that it worked from one of Let's Encrypt's main datacenters but not their cloud-based secondary sites. (They check that you own the name from several vantage points on the Internet, to ensure that you actually own the name.) Did this fail just once, or have you tried multiple times? You say "Never had this issue before", but it looks like you [only have one prior certificate](https://crt.sh/?q=ruimtebot.nl) which is from a few days ago? Why do you need another one?

The only weird things I see about your DNS, which might or might not be related to your problem:

1. Your "three" DNS servers for your name all have the same IP. This means you don't really have redundancy.  
[DNSViz server list for ruimtebot.nl](https://dnsviz.net/d/ruimtebot.nl/servers/)

2. Your DNS server doesn't echo back the same capitalization that was requested. The Unbound DNS server that Let's Encrypt uses does DNS-0x20 case randomization to help mitigate some possible DNS attacks, so it's actually requesting something like `_AcMe-chALleNge.ruImTeboT.nL`. But when I run

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [May 11, 2021, 9:00pm UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/3 "2021-05-11T21:00:46Z")

</div>

Are you using anything like [`fail2ban`](https://www.fail2ban.org) ?

---

<div class="post-metadata">

**Author:** ![xoric](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/xoric/32/49580_2.png) [@xoric](https://community.letsencrypt.org/u/xoric)\
**Post date:** [May 12, 2021, 9:48am UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/4 "2021-05-12T09:48:01Z")

</div>

The current domain just has a certificate for the root name not a wildcard one.  
I host multiple sites on this server but haven't had any issue's on the domain/dns validation.  
It's true that the DNS names direct to one IP, I'm working on redundancy but still no time to build 2 other DNS servers.

So I find it a bit weird that the validation isn't accepted.  
I don't understand why Letsencrypt isn't getting a result on some servers.

---

<div class="post-metadata">

**Author:** ![xoric](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/xoric/32/49580_2.png) [@xoric](https://community.letsencrypt.org/u/xoric)\
**Post date:** [May 12, 2021, 9:49am UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/5 "2021-05-12T09:49:48Z")

</div>

I do use Fail2ban, but I never had an issue with it before.  
The server that currently host's the webpage and domain/dns didn't have any issues in the past 2 year's.

If there is a list of the letsencrypt verification servers I can try to exclude them from the fail2ban.

---

<div class="post-metadata">

**Author:** ![petercooperjr](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/petercooperjr/32/84698_2.png) [@petercooperjr](https://community.letsencrypt.org/u/petercooperjr)\
**Post date:** [May 12, 2021, 12:47pm UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/6 "2021-05-12T12:47:42Z")

</div>

There is no list; Let's Encrypt uses various cloud services to check that your DNS (and the site itself if not using DNS-01) is accessible from everywhere on the Internet, as it's the only way to ensure that you actually own the name as seen from everywhere on the Internet. It looks like a bunch of IPs at once hammering your system, so you might want to look in your logs and see if you're blocking some traffic at the time that you're trying the challenge. You need to ensure that your DNS is unblocked from everywhere on the Internet in order to get a Let's Encrypt certificate.

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [May 12, 2021, 4:49pm UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/7 "2021-05-12T16:49:02Z")

</div>

> [@xoric](#):
>
> I do use Fail2ban

If all three DNS name servers resolve to the same IP.  
Then the concurrent LE checks to them would get multiplied by three to the same IP.  
[which might seem excessive or as an attack to Fail2Ban]

---

<div class="post-metadata">

**Author:** ![xoric](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/xoric/32/49580_2.png) [@xoric](https://community.letsencrypt.org/u/xoric)\
**Post date:** [May 12, 2021, 5:51pm UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/8 "2021-05-12T17:51:35Z")

</div>

It indeed was Fail2Ban....  
Never had this issue before, but now I know.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [June 11, 2021, 5:51pm UTC](https://community.letsencrypt.org/t/dns-problem-servfail/151532/9 "2021-06-11T17:51:55Z")

</div>

Closed on June 11, 2021, 5:51pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
