What you need is some perl...
create yourself some objects (hashes) called ORIGIN, stick them into another
hash and add the various other things to them.
Then sort them and list em out.
On 22-Apr-99 Robin Gilks wrote:
> Hi Simon
>
> This is the sort of thing I get in my DNS cache and is causing the problem.
>
> $ORIGIN AMPR.ORG.
> lx IN A 44.161.0.0
> soxon-hub-uk IN CNAME g6lnu.AMPR.ORG.
> 9a1bhi IN A 44.170.20.10
> $ORIGIN mu.AMPR.ORG.
> net IN A 44.136.10.0
> gw IN A 44.136.10.1
> IN MX 0 gw.mu.AMPR.ORG.
> IN MX 20 marconi.mpce.mq.edu.au.
> $ORIGIN nm.AMPR.ORG.
> abqgate IN A 44.30.0.50
> IN MX 10 mack.rt66.com.
> IN MX 20 chili.rt66.com.
> $ORIGIN AMPR.ORG.
> dl4zbb IN A 44.130.52.50
> $ORIGIN itcj.mx.AMPR.ORG.
> router IN A 204.157.234.10
> liebre IN A 204.157.234.2
> gate IN A 204.157.234.25
> dsc IN A 204.157.234.3
> $ORIGIN AMPR.ORG.
>
>
> The redefining of the origin all the time makes it difficult to find a flat
> bit of
> address space. Can't help thinking there should be a few more rules applied
> in the allocation of names in ampr.org - in the sub-domain 'gw' for example
> there is
> vk4vh IN A 44.136.147.16
> lu1ma IN A 200.9.147.40
> vk4cjs IN A 44.136.138.69
> lu9mab IN A 200.9.147.184
> IN A 200.9.154.184
> vk4bw IN A 44.136.147.27
>
> Boy does it show up when viewed like this...
>
> Anyway - thats not really the current problem...
>
> Robin. G8ECJ
>
>
>
> ----- Original Message -----
> From: Simon J Mudd <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: 21 April 1999 20:46
> Subject: Re: ampr_extractor and bind-8 cache files
>
>
>> It's nice to know someone uses the things I write :-)
>>
>> "Robin Gilks" <[EMAIL PROTECTED]> writes:
>>
>> > 1. I'd like to extract the UK parts of the ampr.org domain using
>> > ampr_extractor from Simon Mudd (or similar) but the cache file
>> > that bind-8 produces is a real mix!! None of the CNAMEs or MX
>> > records get sorted out but the basic forward IN records seem
>> > to extract OK.
>>
>> The MX records and CNAME records _should_ work, at least for the
>> 44.133.x.y domain I've seen this works ok (or did last time I looked)
>>
> [snip]
>> Regards,
>>
>> Simon
>> --
>> Simon J Mudd, Madrid SPAIN Tel: +34-91-408 4878 email:
> [EMAIL PROTECTED]
>> [short messages - from radio hams only] ---->
> [EMAIL PROTECTED]
---
Dirk-Jan Koopman, Tobit Computer Co Ltd
At the source of every error which is blamed on the computer you will find
at least two human errors, including the error of blaming it on the computer.