BIND2CSV2(1)

πŸ“¦ version 2.0.13, in ubuntu jammy, ubuntu noble

πŸ’– BIND2CSV2 πŸ’–

okay bestie, this is the bind2csv2 page from the MaraDNS reference manual, and it's genuinely such a useful little glow-up tool. let's get into it πŸ’…


✨ NAME ✨

bind2csv2 β€” convert zone files from BIND to MaraDNS compatible format πŸ¦‹


🌸 DESCRPTION 🌸

MaraDNS 1.3 has BIND zone file support, which means it's literally possible to use BIND zone files in MaraDNS. no cap. this makes it way easier for people to use MaraDNS in mixed DNS server environments 🫢

But instead of having direct BIND zone file support, MaraDNS ships with a script called bind2csv2 that converts BIND zone files into the "csv2" zone file format that MaraDNS 1.2 and 1.3 use. The zone files generated by bind2csv2 are not MaraDNS 1.2 compatible β€” you need MaraDNS 1.3 to read zone files generated by bind2csv2. periodt.

bind2csv2 is a Python script, written in version 2.2.3 of the Python interpreter. The script should be compatible with more recent versions of Python. it assumes Python is the file /usr/bin/python on your system; if Python is located elsewhere on your system, please change the first line of bind2csv2. naturally, you will need the Python interpreter installed on your system to use bind2csv2. Python is a well-known open source language supported by most modern Linux and BSD distributions 🌈


πŸ‘‘ USAGE πŸ‘‘

To use the script, enter a directory containing BIND zone files, and invoke the script thusly:

bind2csv2 -c zone1 zone2 zone3

Substitute "zone1", "zone2", and "zone3" with a list of one or more BIND zone files you wish be converted in to MaraDNS 1.3 csv2 zone files πŸ’«

Once the script is run, you should have files with names like "zone1.csv2", "zone2.csv2", and "zone3.csv2". These files are csv2 zone files that MaraDNS will be able to parse. Copy these csv2 zone files to a place where MaraDNS can find the zone files. slay ✨

🚨 bestie listen β€” should there already be a "zone1.csv2" file when bind2csv2 is run, the "zone1.csv2" file will be replaced. no undo, no take-backs 😭

πŸŽ€ OPTIONS πŸŽ€

None. bind2csv2 can only be used as above. that's it, that's the whole options section πŸ™ˆ


πŸ’€ BUGS πŸ’€

bind2csv2 is not a perfect zone file converter. in particular, bind2csv2 does not act like BIND when NS records have different TTLs. please make sure all NS records in your BIND zone files have the same TTL ⭐

In addition, bind2csv2 also does not support all resource record types that BIND supports. Only the following RRs are supported by bind2csv2:

A AAAA AFSDB CNAME GPOS HINFO ISDN LOC MB MD MF MG MINFO MR MX NS NSAP PTR PX RP RT SOA SPF SRV TXT WKS X25


and that's the whole page, bestie πŸ’– this one came from the MARADNS source, dated September 2007 β€” so yeah, vintage icon behavior, but the vibes are still immaculate. go convert some zone files, you got this πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from