Chapter 25. DNS data manipulation

Tools contains the script parse-key-3.py which converts public key file contents to different DNS zone file formats. To convert to unpatched BIND9 format, use command:

# ./parse-key-3.py < felwood/hip_host_dsa_key_pub.pub felwood2.hip-test1.infrahip.net felwood.infrahip.net crossroads.infrahip.net | sed -n -e '/^9BIND */s///p'
      

This outputs a line which can be inserted to a zone file. Similarly, with sed command:

.... | sed -n -e '/^HIPBIND */s///p'
      

an HIP RR entry suitable for OpenDHT version of BIND9 is output and with

.... | sed -n -e '/^DJBDNS */s///p'
      

a line for Dan Bernstein's tinydns is output. For further information, please refer to parse-key-3.py and myasn.py.