Anyone written a "sorting utility"?

Simon Waters Simon at wretched.demon.co.uk
Tue Jul 9 23:59:43 UTC 2002


"HURT, CHRIS [AG-Contractor/1000]" wrote:
> 
> I have a forward mapping zone file of about 60,000 records which I'd like to
> make human readable again! 

dig @server zone axfr

(and cut the second SOA record) gets it all nicely alligned and
TTLs in each record for easy sorting.

> I'd like a utility to sort by type (NS, MX, A,
> CNAME) and then by (depending on type of course) IP address (in numerical IP
> order 10.1.1.1, 10.1.1.2, 10.1.1.3, etc), OR by name (for CNAME, MX and NS
> RRs).  Before I go and write a utility to do this - has anyone already done
> it that would be willing to share?

The Unix commands "sort" and "grep" will probably do all you
need from then on.


More information about the bind-users mailing list