This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
convert_tinydns_data_format_to_zone_file_format_described_by_rfc_1035_bind-style [2019/02/05 11:57] admin |
convert_tinydns_data_format_to_zone_file_format_described_by_rfc_1035_bind-style [2020/04/08 21:28] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Convert tinydns data format to zone file format described by RFC 1035 (bind-style) ====== | ====== Convert tinydns data format to zone file format described by RFC 1035 (bind-style) ====== | ||
+ | This simple script converts the content of tinydns' | ||
- | ===== Requirements ===== | ||
- | | + | ===== Requirements ===== |
+ | | ||
* [[https:// | * [[https:// | ||
- | Script | + | ===== Setting up axfrdns ===== |
+ | Use [[https:// | ||
+ | axfrdns-conf gaxfrdns gdnslog / | ||
+ | ln -s / | ||
+ | |||
+ | ===== Conversion | ||
#!/bin/bash | #!/bin/bash | ||
+ | | ||
set -e | set -e | ||
cd / | cd / | ||
Line 20: | Line 26: | ||
sed -e " | sed -e " | ||
done | done | ||
- | |||
- | rm -f zone/ | ||
- | grep " | ||
- | sed -e " | ||
- | sed -e " | ||
- | done | ||
- | |||
- | == zone-list-master.tpl == | ||
- | < | ||
- | | ||
- | | ||
- | | ||
- | # | ||
- | </ | ||
- | | ||
- | == zone-list-slave.tpl == | ||
- | < | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | | ||