Closed TheTesla closed 6 years ago
please check: https://dane-test.had.dnsops.gov/server/dane_check.cgi?host=testserver.entroserv.de
Checking testserver.entroserv.de: --> --> TypeError Python 3.4.5: /usr/bin/python3 Mon Jan 8 18:04:04 2018 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /var/www/html/server/dane_check.cgi in () 83 print("Checking <b>{0}</b>:<br>".format(host)) 84 sys.stdout.flush() => 85 dane_checker.process(host,format='html') 86 sys.stdout.flush() 87 print("<p>Compare with <a href='https://dane.sys4.de/smtp/{}'>dane.sys4.de</a></p>".format(host)) dane_checker = <module 'dane_checker' from '/var/www/dane-tester/server/dane_checker.py'>, dane_checker.process = <function process>, host = 'testserver.entroserv.de', builtin format = <built-in function format> /var/www/dane-tester/server/dane_checker.py in process(domain='testserver.entroserv.de', format='html') 1302 ret = tlsa_https_verify(domain) 1303 else: => 1304 ret = tlsa_smtp_verify(domain) 1305 if ret[-1].passed==True: 1306 passed.append(domain) ret undefined, global tlsa_smtp_verify = <function tlsa_smtp_verify>, domain = 'testserver.entroserv.de' /var/www/dane-tester/server/dane_checker.py in tlsa_smtp_verify(destination_hostname='testserver.entroserv.de') 1171 smtp_tlsa_status = None 1172 for hostname in [h.rr.exchange.to_text() for h in mx_data]: => 1173 this_ret = tlsa_smtp_host_verify(hostname,destination_hostname,delivery_tlsa_records,'MX') 1174 all_tests_pass = True if count_passed(this_ret,val=True)>0 and count_passed(this_ret,val=False)==0 else False 1175 if first: this_ret undefined, global tlsa_smtp_host_verify = <function tlsa_smtp_host_verify>, hostname = 'testserver.entroserv.de.', destination_hostname = 'testserver.entroserv.de', delivery_tlsa_records = [<n/a True DNS TLSA lookup _25._tcp.testserver.en...29714F71E740AFDC543C4F7F012A748D24A789B8BF3D6C7 >, <n/a True DNS TLSA lookup _25._tcp.testserver.en...857AF757D7A831E60E9C3E1CCCC86130A2310380121E448 >] /var/www/dane-tester/server/dane_checker.py in tlsa_smtp_host_verify(hostname='testserver.entroserv.de.', delivery_hostname='testserver.entroserv.de', delivery_tlsa_records=[<n/a True DNS TLSA lookup _25._tcp.testserver.en...29714F71E740AFDC543C4F7F012A748D24A789B8BF3D6C7 >, <n/a True DNS TLSA lookup _25._tcp.testserver.en...857AF757D7A831E60E9C3E1CCCC86130A2310380121E448 >], host_type='MX') 1144 ret = [ DaneTestResult(passed=INFO,what='Detail for {} host {}:'.format(host_type,hostname)) ] 1145 ret += tlsa_service_verify(desc=host_type,hostname=hostname,port=25,protocol='smtp', => 1146 delivery_hostname=delivery_hostname,delivery_tlsa=delivery_tlsa_records) 1147 apply_dnssec_test(ret) 1148 return ret delivery_hostname = 'testserver.entroserv.de', delivery_tlsa undefined, delivery_tlsa_records = [<n/a True DNS TLSA lookup _25._tcp.testserver.en...29714F71E740AFDC543C4F7F012A748D24A789B8BF3D6C7 >, <n/a True DNS TLSA lookup _25._tcp.testserver.en...857AF757D7A831E60E9C3E1CCCC86130A2310380121E448 >] /var/www/dane-tester/server/dane_checker.py in tlsa_service_verify(desc='MX', hostname='testserver.entroserv.de.', port=25, protocol='smtp', delivery_hostname='testserver.entroserv.de', delivery_tlsa=[<n/a True DNS TLSA lookup _25._tcp.testserver.en...29714F71E740AFDC543C4F7F012A748D24A789B8BF3D6C7 >, <n/a True DNS TLSA lookup _25._tcp.testserver.en...857AF757D7A831E60E9C3E1CCCC86130A2310380121E448 >]) 1036 1037 # Chase the CNAME if possible => 1038 (chased_hostname,cname_results) = chase_dns_cname(hostname) 1039 ret += cname_results 1040 if not chased_hostname: chased_hostname undefined, cname_results undefined, global chase_dns_cname = <function chase_dns_cname>, hostname = 'testserver.entroserv.de.' /var/www/dane-tester/server/dane_checker.py in chase_dns_cname(hostname='testserver.entroserv.de.') 983 secure = True 984 while depth < MAX_CNAME_DEPTH and hostname: => 985 cname_results = dns_query_cname(hostname) 986 if cname_results==[]: 987 if depth>0: cname_results undefined, global dns_query_cname = <function dns_query_cname>, hostname = 'testserver.entroserv.de.' /var/www/dane-tester/server/dane_checker.py in dns_query_cname(qname='testserver.entroserv.de.') 962 963 def dns_query_cname(qname): => 964 return dns_query(qname,request_type=dns.rdatatype.CNAME) 965 966 def dns_query_tlsa(host,port): global dns_query = <function dns_query>, qname = 'testserver.entroserv.de.', request_type undefined, global dns = <module 'dns' from '/usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/__init__.py'>, dns.rdatatype = <module 'dns.rdatatype' from '/usr/lib/python3.4...ges/dnspython-1.15.0-py3.4.egg/dns/rdatatype.py'>, dns.rdatatype.CNAME = 5 /var/www/dane-tester/server/dane_checker.py in dns_query(qname='testserver.entroserv.de.', request_type=5) 921 T = Tester() 922 T.newtest(testname="py.test") => 923 response = dbdns.query(T,qname,request_type) 924 ret = [] 925 SUCCESS="" response undefined, global dbdns = <module 'dbdns' from '../email/dbdns.py'>, dbdns.query = <function query>, T = <tester.Tester object>, qname = 'testserver.entroserv.de.', request_type = 5 /var/www/dane-tester/email/dbdns.py in query(T=<tester.Tester object>, qname='testserver.entroserv.de.', rr=5, replay=False) 59 (T.testid,str(qname),rr,response_text)) 60 T.conn.commit() => 61 return dns.message.from_text(response_text) 62 except dns.resolver.NXDOMAIN as e: 63 c.execute("insert into dns (testid,queryname,queryrr,NXDOMAIN) values (%s,%s,%s,True)", global dns = <module 'dns' from '/usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/__init__.py'>, dns.message = <module 'dns.message' from '/usr/lib/python3.4/s...kages/dnspython-1.15.0-py3.4.egg/dns/message.py'>, dns.message.from_text = <function from_text>, response_text = 'id 36301\nopcode QUERY\nrcode NOERROR\nflags QR RD ...g7kqkui7dttjb A MX TXT AAAA RRSIG CAA\n;ADDITIONAL' /usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/message.py in from_text(text='id 36301\nopcode QUERY\nrcode NOERROR\nflags QR RD ...g7kqkui7dttjb A MX TXT AAAA RRSIG CAA\n;ADDITIONAL') 1011 1012 reader = _TextReader(text, m) => 1013 reader.read() 1014 1015 return m reader = <dns.message._TextReader object>, reader.read = <bound method _TextReader.read of <dns.message._TextReader object>> /usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/message.py in read(self=<dns.message._TextReader object>) 992 continue 993 self.tok.unget(token) => 994 line_method(section) 995 996 line_method = <bound method _TextReader._rr_line of <dns.message._TextReader object>>, section = [<DNS entroserv.de. IN SOA RRset>, <DNS entroserv.de. IN RRSIG(SOA) RRset>, <DNS ouhpt428ku4p2hjjntpeast0u9i0ce22.entroserv.de. IN RRSIG(NSEC3) RRset>] /usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/message.py in _rr_line(self=<dns.message._TextReader object>, section=[<DNS entroserv.de. IN SOA RRset>, <DNS entroserv.de. IN RRSIG(SOA) RRset>, <DNS ouhpt428ku4p2hjjntpeast0u9i0ce22.entroserv.de. IN RRSIG(NSEC3) RRset>]) 952 if not token.is_eol_or_eof(): 953 self.tok.unget(token) => 954 rd = dns.rdata.from_text(rdclass, rdtype, self.tok, None) 955 covers = rd.covers() 956 else: rd undefined, global dns = <module 'dns' from '/usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/__init__.py'>, dns.rdata = <module 'dns.rdata' from '/usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/rdata.py'>, dns.rdata.from_text = <function from_text>, rdclass = 1, rdtype = 50, self = <dns.message._TextReader object>, self.tok = <dns.tokenizer.Tokenizer object> /usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/rdata.py in from_text(rdclass=1, rdtype=50, tok=<dns.tokenizer.Tokenizer object>, origin=None, relativize=True) 426 return from_wire(rdclass, rdtype, rdata.data, 0, len(rdata.data), 427 origin) => 428 return cls.from_text(rdclass, rdtype, tok, origin, relativize) 429 430 cls = <class 'dns.rdtypes.ANY.NSEC3.NSEC3'>, cls.from_text = <bound method type.from_text of <class 'dns.rdtypes.ANY.NSEC3.NSEC3'>>, rdclass = 1, rdtype = 50, tok = <dns.tokenizer.Tokenizer object>, origin = None, relativize = True /usr/lib/python3.4/site-packages/dnspython-1.15.0-py3.4.egg/dns/rdtypes/ANY/NSEC3.py in from_text(cls=<class 'dns.rdtypes.ANY.NSEC3.NSEC3'>, rdclass=1, rdtype=50, tok=<dns.tokenizer.Tokenizer object>, origin=None, relativize=True) 131 if new_window != window: 132 if octets != 0: => 133 windows.append((window, ''.join(bitmap[0:octets]))) 134 bitmap = bytearray(b'\0' * 32) 135 window = new_window windows = [], windows.append = <built-in method append of list object>, window = 0, ''.join undefined, bitmap = bytearray(b'@\x01\x80\x08\x00\x02\x00\x00\x00\x0...x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), octets = 6 TypeError: sequence item 0: expected str instance, int found args = ('sequence item 0: expected str instance, int found',) with_traceback = <built-in method with_traceback of TypeError object> Privacy Statement Privacy Policy Security Notice Accessibility Statement NIST Privacy Program No Fear Act Policy Disclaimer FOIA Environmental Policy Statement Cookie Disclaimer Scientific Integrity Summary NIST Information Quality Standards Business USA Commerce.gov Healthcare.gov Science.gov USA.gov
Fixed. Error in dnsjava. Seems to work now.
please check: https://dane-test.had.dnsops.gov/server/dane_check.cgi?host=testserver.entroserv.de