Skip to content

Handling of idna error, problem with DS/DNSKEY algo number

John Shaft requested to merge Shaft/dns-lg:master into master

2 commits :

  • The first one adds an exception on idna encode error
  • The second one corrects a problem with DS/DNSKEY in XML/HTML mode : the algorithm number doesn't show up correctly (on Python 3.10.7 and dnspython 2.2.1). It does not convert dnspython internal algo name to number :
$ curl -s http://127.0.0.1:8080/com./DNSKEY?format=xml
...
      <RRSet type="DNSKEY" ttl="73948" class="IN"><DNSKEY flags="256" protocol="3" algorithm="lgorithm.RSASHA256"...
...


$ curl -s http://127.0.0.1:8080/com./DNSKEY?format=html
...
	<li><span>DNSSEC key: <span>32298, </span>algorithm Algorithm.RSASHA256 (RSASHA256),...
...

Other formats are fine (haven't test OpenMetrics though). The commit also adds DS algo to JSON, as it is missing

Edited by John Shaft

Merge request reports