Python type txt to type 99/spf conversion script
2.0.9
The type99script will convert DNS TXT strings to a binary equivalent suitable for use in a BIND zone file. Since use of DNS type SPF (99) was removed in RFC 7208, this script should be of historical interest only.
The type99 script is called from the command line as follows:
python type99 "v=spf1 -all" {Note: Use your desired SPF record instead.}
\# 12 0b763d73706631202d616c6c {This is the correct result for "v=spf1 -all"}
or
python type99 - {File name}
The input file format is a standard BIND Zone file. The type99 script will add a Type99 record for each TXT record found in the file.
RFC 4408, <http://www.openspf.org>
This version of type99 was written by Stuart Gathman <[email protected]> and updated by Scott Kitterman <[email protected]>.
This man-page was created by Scott Kitterman <[email protected]>.