Generate Chaos host info from DNS
- ITS H3TEXT [see e.g. https://github.com/PDP-10/its/blob/master/build/h3text.2018]
- 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]
Output format selection - one of the following (required):
-
-3to generate HOSTS3 format ("extended" RFC 810) for e.g. ITS -
-lto generate LISPM format (RFC 752, I think) which looks like it matches the 4.1BSD format. -
-ito create a list of ITS shortnames, suitable for def of ITSIRP in SYSTEM;CONFIG. Note: prunes any "-ITS" suffix (e.g.ES-ITSbecomes justES) and only includes short (2-3 characters) names, since longer ones are not useful as ITS shortnames.
Other options:
-
-ato add aliases for .Chaosnet.NET hosts by removing the trailing .Chaosnet.NET (so you can e.g. parse two-letter abbrevs easily) -
-ddomain to set the local domain, so aliases without the domain are added -
-Ito add IP addresses to those that have them (including private IP addresses) -
-Gto add non-private (global) IP addresses only -
-Sservername to set the DNS server used for queries (defaultdns.chaosnet.net)
Requires dnspython, which is at https://github.com/rthalley/dnspython.