[nsd-users] Zone file sort/rearrange
Daisuke HIGASHI
daisuke.higashi at gmail.com
Fri Oct 23 12:15:39 UTC 2015
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,
--
Daisuke HIGASHI
2015-10-22 21:17 GMT+09:00 Eugene Prokopiev <enp at itx.ru>:
> 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.
>
> --
> WBR,
> Eugene Prokopiev
> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
More information about the nsd-users
mailing list