On Wed, 18 Oct 2000, Marc Schneiders wrote:
> On Tue, 17 Oct 2000, !Dr. Joe Baptista wrote:
> >
> > On Tue, 17 Oct 2000, Chronos wrote:
> >
> > > I know how to uncompress the data, but what the heck do I do with it after I
> > > have uncompressed it?? If I just used vi I think the system would probably
> > > crash or take forever to open the file. This is what I want to do, I want to
> > > write a PHP script that will beable to search the file and display it on a
> > > page.
> >
> > In the words of the perpetual civil servant "that's a bold idea"
> >
> > what exactly do you want to do with the data - it's in bind zone format -
> > so a conversion maybe in order. But you need to know what it is you want
> > to do with it. And yes - vi don't work on it.
>
> Although I think Joe Baptista knows much more about this, streaming
> and piping &c. (?), I can tell you what I do with the zone
> files. Occasionally, just for play.
>
> 1. Grep them, e.g. grep '^..\.NET\.' net.zone > 2-letter.net This will
> give you a small file with all 2-letter net domains in it, well and
> some rubbish, vid. their nameservers :-)
i usually do;
zcat $zonefilename | grep " IN NS " | cut -d"." -f1 | tr '[a-z]' '[A-Z]' | sort -u
now you'd have to check the zone file to see if that cut statement is a
-d"." or a -d" " - I forget.
now the formula I gave is not going to work for most of you. I have a
four gig tmp drive - so I expect on smaller systems the above command will
cause some problems - mainly with the sort command which generates alot of
tmp stuffers - i.e. sort files.
so cut it up - make a file with the letters A-Z and numerals 0-9 and then
take that file and use it to parse the zone into alpha numberic parts.
i.e.
cat $alphanumfile |
while read line
do
zcat $zonefilename | grep " IN NS " | grep "^$line" | cut -d"." -f1 | tr '[a-z]'
'[A-Z]'
> $line.zone-file
done
that breaks it into manageable pieces you can then sort individually. the
diffs are also a killer to do. The trick is to manage the files according
to your memory limitations.
>
> 2. Do the same with the zone file of a day of 4 or 5 later.
>
> 3. Diff these two files to a file.
>
> 4. Study that file, which shows you the changes. Many uninteresting,
> changes of nameservers. Some, however, which appear in the older file
> and not in the newer, may be domains that will some time soon (NetSol
> permitting) be released.
>
> Now, I am looking for a *working* script to attempt to register a name
> that will be available soon with wget through my own opensrs pages.
> Not to do it every minute, but at the time, that I think it must be
> released, and when I may be sleeping or having a shower.
>
> Of course, nobody will tell me :-(
>
>
--
Please excuse the delay in my response. An email support and tracking
system will be implimented in the near future which should reduce the delay
in providing support to you.
dot.GOD Hostmaster
http://www.dot-god.com/
[EMAIL PROTECTED]