Hi,
It it possible to sort/rearrange big zone file (by $ORIGIN and
name/address for example) which was received via AXFR? Now it looks
not suitable for supporting because all records are pasted (by
nsd-contril write) in random order.
Hi,
It it possible to sort/rearrange big zone file (by $ORIGIN and
name/address for example) which was received via AXFR? Now it looks
not suitable for supporting because all records are pasted (by
nsd-contril write) in random order.
Hi, Eugene
ldns-read-zone in ldns (http://www.nlnetlabs.nl/projects/ldns/)
prints zonefile several ways. If you want to sort records in zonefile by name:
$ cat example.com | bin/ldns-read-zone -z
example.com. 3600 IN NS ns1.example.com.
example.com. 3600 IN NS ns2.example.com.
host1.example.com. 3600 IN A 10.0.0.1
host1.example.com. 3600 IN A 10.0.0.1
mail.example.com. 3600 IN A 192.0.2.1
ns1.example.com. 3600 IN A 1.2.3.4
ns2.example.com. 3600 IN A 1.2.3.4
www.example.com. 3600 IN A 192.168.0.1
Regards,