Generate Chaos host info from DNS
- ITS H3TEXT [see e.g. https://github.com/PDP-10/its/blob/master/build/h3text.2017#L134-L150]
- Lispm HOSTS TEXT or BSD 4.1 hosts file [see e.g. https://tumbleweed.nu/r/sys/file?name=site/hosts.text.392&ci=tip]
Options:
-3 to generate hosts3 format ("extended" RFC 810) for ITS
-l to generate lispm format (RFC 752, I think) which looks like it matches the 4.1BSD format.
-a to add aliases for .Chaosnet.NET hosts by removing the trailing .Chaosnet.NET (so you can parse two-letter abbrevs easily)
-i to create a list of ITS shortnames, suitable for def of ITSIRP in SYSTEM;CONFIG
-d domain to set local domain, which is also adds aliases without the domain
Requires dnspython, which is at https://github.com/rthalley/dnspython.