I’m getting DNS problem: SERVFAIL looking up TXT for _acme-challenge.nimroddayan.com error.
I want to setup auto-renewing wildcard LetsEncrypt certificates on Namecheap using certbot + acme-dns for my domain: nimroddayan.com. I followed this guide on Ubuntu server 18.04.
After setting up acme-dns and Namecheap A, NS and CNAME records and getting the manual auth hook script from here, I ran this command:
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for nimroddayan.com
dns-01 challenge for nimroddayan.com
Waiting for verification…
Challenges loaded. Press continue to submit to CA. Pass “-v” for more info about
challenges.
Press Enter to Continue
Cleaning up challenges
Failed authorization procedure. nimroddayan.com (dns-01): urn:ietf:params:acme:error:dns :: DNS problem: SERVFAIL looking up TXT for _acme-challenge.nimroddayan.com
The following errors were reported by the server:
Domain: nimroddayan.com
Type: None
Detail: DNS problem: SERVFAIL looking up TXT for
_acme-challenge.nimroddayan.com
My web server is (include version):
Acme-dns v0.7.2
The operating system my web server runs on is (include version):
Ubuntu server 18.04
I removed the AAAA record and I’m left with only A record now.
I’m not sure why it is not responding.
I checked acme-dns status and I see:
$ sudo systemctl status acme-dns
● acme-dns.service - Limited DNS server with RESTful HTTP API to handle ACME DNS challenges easily and securely
Loaded: loaded (/etc/systemd/system/acme-dns.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-08-25 07:41:58 UTC; 2s ago
Main PID: 10982 (acme-dns)
Tasks: 5 (limit: 1111)
CGroup: /system.slice/acme-dns.service
└─10982 /usr/local/bin/acme-dns
Aug 25 07:41:58 Orchid systemd[1]: Started Limited DNS server with RESTful HTTP API to handle ACME DNS challenges easily and securely.
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=info msg=“Using config file” file=/etc/acme-dns/config.cfg
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=info msg=“Connected to database”
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=debug msg=“Adding new record to domain” domain=acme.nimroddayan.com. recordtype=A
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=debug msg=“Adding new record to domain” domain=ns1.nimroddayan.com. recordtype=A
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=debug msg=“Adding new record to domain” domain=acme.nimroddayan.com. recordtype=NS
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=debug msg=“Adding new record to domain” domain=acme.nimroddayan.com. recordtype=SOA
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=info msg=“Listening HTTP” host=“127.0.0.1:9000”
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=info msg=“Listening DNS” addr=“127.0.0.1:53” proto=udp
Aug 25 07:41:58 Orchid acme-dns[10982]: time=“2019-08-25T07:41:58Z” level=info msg=“Listening DNS” addr=“127.0.0.1:53” proto=tcp