miekg / exdns

Go DNS example programs
BSD 2-Clause "Simplified" License
300 stars 60 forks source link

TSIG: Use SHA256 #28

Closed meetme2meat closed 8 months ago

meetme2meat commented 2 years ago

Support for MD5 has been removed. https://github.com/miekg/dns/pull/1187. Attempting to use the old code with dig (which default uses md5) results in a timeout.

dig @localhost -p 8053 google.com -y "localhost:8jQl0/GSNiqKvA71/ahmx/DYjbc7aL/WXP6sLD/56Z8=" 

With, the above change and a modified dig command seem to work

dig @localhost -p 8053 google.com -y "hmac-sha256:localhost:8jQl0/GSNiqKvA71/ahmx/DYjbc7aL/WXP6sLD/56Z8="