Commit 8cb87514 authored by Petr Špaček's avatar Petr Špaček Committed by Tomas Krizek

qprep: accept non-ASCII non-Punycode labels

dnspython tries to parse strings as if they were Unicode, which failed
for weird labels.
parent 6ffb925d
......@@ -101,7 +101,7 @@ def wire_from_text(text):
Raises: ValueError or dns.exception.Exception on invalid input
qname, qtype = text.rsplit(None, 1)
qname =
qname ='ascii'))
qtype = int_or_fromtext(qtype, dns.rdatatype.from_text)
msg = dns.message.make_query(qname, qtype, dns.rdataclass.IN,
want_dnssec=True, payload=4096)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment