Opened 12 years ago

Closed 12 years ago

#33 closed defect (fixed)

probedns: handle dnspython TrailingJunk error

Reported by: wander Owned by:
Priority: must-have Component: probedns
Keywords: Cc:

Description

Querying for kp. IN DNSKEY... Traceback (most recent call last):
  File "probedns.py", line 361, in <module>
    (response, rid) = query(proberun, tldname, tld.__iter__(), dns.rdatatype.DNSKEY)
  File "probedns.py", line 228, in query
    response = resolver_func(qry, server, timeout=5)
  File "/usr/lib/python2.7/dist-packages/dns/query.py", line 230, in udp
    one_rr_per_rrset=one_rr_per_rrset)
  File "/usr/lib/python2.7/dist-packages/dns/message.py", line 786, in from_wire
    reader.read()
  File "/usr/lib/python2.7/dist-packages/dns/message.py", line 729, in read
    raise TrailingJunk
dns.message.TrailingJunk

Change History (4)

comment:1 Changed 12 years ago by wander

probably bug in dnspython, examine with dnskey-kp-truncated.pcap

comment:2 Changed 12 years ago by wander

Bug in name server, not dnspython: response contains OPT record, though ADDITIONAL section count is 0.

comment:3 Changed 12 years ago by wander

Should handle TrailingJunk? like RCODE_UNEXPECTED_SOURCE.

comment:4 Changed 12 years ago by wander

Resolution: fixed
Status: newclosed

(In [864]) handle TrailingJunk? (closes #33)

Note: See TracTickets for help on using tickets.