I tried:

On Wed, May 27, 2020 at 10:46:04AM -0700, Mark Sapiro wrote:
[...]

> The first question is why is this query raising
> dns.resolver.NoNameservers. I've tried this from a couple of different
> servers
> 
> import dns.resolver
> from dns.exception import DNSException
> resolver = dns.resolver.Resolver()
> txt_recs = resolver.query('_dmarc.blindeforbundet.no', dns.rdatatype.TXT)
> 
> and in both cases, I get
> 
> raise NXDOMAIN(qnames=qnames_to_try, responses=nxdomain_responses)
> dns.resolver.NXDOMAIN: None of DNS query names exist:
> _dmarc.blindeforbundet.no., ...
> 
> I.e. the expected response when there is no record for
> _dmarc.blindeforbundet.no
> 
> If this is a persistent error, there may be an issue with the way your
> server does DNS lookups.

I tried the code on my system as well, and get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    File "/usr/lib/python3.7/site-packages/dns/resolver.py", line 1002, in query
        raise NXDOMAIN(qnames=qnames_to_try, responses=nxdomain_responses)
        dns.resolver.NXDOMAIN: None of DNS query names exist: 
_dmarc.blindeforbundet.no.
        , _dmarc.blindeforbundet.no.lamasti.net.

Thanks

Lars
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to