All nameservers failed to answer the query : Server Do53:127.0.0.53@53 answered SERVFAIL

Rudeus

New member
Joined
Aug 16, 2023
Messages
1
Hey !

I don't know if i'm in the good place.

I’m trying to retrieve the domain DS entry for DNSSEC.

It works locally but as soon as I switch to the server, I have this error

All nameservers failed to answer the query luniv.fr. IN DS: Server Do53:127.0.0.53@53 answered SERVFAIL


I use Django for use my function.

In my views.py file, i have :

domain_name = request.GET.get("domain") print(domain_name) print(type(domain_name)) try: result = validate_dnssec(domain_name) ds = check_ds_record(domain_name) return render(request, 'toolbox/dnssec.html', {'result': result, 'domain' : domain_name, 'ds': ds}) except TypeError: return render(request, 'toolbox/dnssec.html') except (dns.resolver.NXDOMAIN): return render(request,'toolbox/dnssec.html', { 'domain_ko' : " n'existe pas ! ", "domain": domain_name})

My function "check_ds_record" in my try come from a file main.py :

try: n = dns.name.from_text(domain_name) answers = dns.resolver.resolve(n, rdtype=dns.rdatatype.DS) return [rdata.to_text() for rdata in answers] except (ValueError, TypeError, dns.resolver.NoAnswer, dns.resolver.LifetimeTimeout): return None except dns.resolver.NoNameservers as e: return e

I don't understand what happened :(

Any idea ?

Thx !
 
I don't know if i'm in the good place.
No sorry, it looks like your in the wrong place.

This forum is only for Directadmin license holders, so admins using a server which use the Directadmin hosting panel.
DA uses named/bind and not Django. You probably need to go to a computer forum or Linuxquestions.org or stackoverflow.com or something similar.
 
not relate directadmin, but answer is simple.

Just install named/bind9 and config correctly, or use public DNS resolve.
 
Back
Top