On Fri, Jun 15, 2012 at 11:33:31AM +0200, Axel Rau wrote:
>     zone = dns.zone.from_xfr(dns.query.xfr(s, self.name, relativize=False, 
> lifetime=30.0), relativize=False)
>     my_covers = dns.rdatatype.DNSKEY        # DNSKEYs signed by KSK
>     rds = zone.find_rrset(self.name + '.', 'RRSIG', covers=my_covers)
>     
>     for rrsig_rdata in rds.items:
>         key_tag = rrsig_rdata.key_tag
>
>
> ...gives:  <class 'dns.exception.FormError'>

On which line? What is the exception text?

You can get a FormError exception from dns.query.xfr() if the server replies
with no resource records (indicating it rejected your AXFR request).

I've just encountered exactly this behaviour. I think the conditional in
query.py needs to be separated so distinct exceptions are raised for 'no
answer' and 'bogus answer':

  if not r.answer or r.answer[0].name != oname:
    raise dns.exception.FormError("No answer or RRset not for qname")


jm
-- 
Times flies like an arrow. Fruit flies like bananas.
_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo/dnspython-users

Reply via email to