Chapter 29. DNS data manipulation

Tools directory contains hipdnskeyparse a script (after running ./autogens.h) which converts public key file contents to different DNS zone file formats. To convert to unpatched BIND9 format, run the following:

hipdnskeyparse < /etc/hip/hip_host_rsa_key_pub.pub hostname.domain.org | 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.