Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Need Good tool for Zone queries

Status
Not open for further replies.

Adam DickerAdam Dicker is verified member.

New Member
The Originals
Legacy Exclusive Member
Domain Broker
Joined
Feb 20, 2003
Messages
15,041
Reaction score
1,192
Example, I want to download the whole .com zone file and then easily search for all registered names starting with the keyword florida?

PM me info if you have any, will be much appreaciated.

-=DCG=-
 

Theo

New Member
The Originals
Joined
Feb 28, 2004
Messages
30,306
Reaction score
2,217
Adam, given the size of the zone files I suggest that you ask a programmer to build a web interface on top of a linux box. Much faster than anything under Windows.
 

kengreenwood

Platinum Lifetime Member
Legacy Exclusive Member
Joined
May 11, 2006
Messages
332
Reaction score
3
FYI - I just loaded the Verisign zone file for all of the .net domains and that alone was nearly 28 million records. The .com file is about 7 times the size of the .net file - so it probably has around 210 million records in it...
 

Dale Hubbard

Formerly 'aZooZa'
The Originals
Legacy Exclusive Member
Joined
Jan 24, 2003
Messages
5,578
Reaction score
91
Adam, this is my speciality. PM me of you have no solution, or ask Luc to do it. He has downloadable zone files with the NS crap removed. It's a one-liner in Linux.
 

Theo

New Member
The Originals
Joined
Feb 28, 2004
Messages
30,306
Reaction score
2,217
Just Grep it (tm) :D
 

Dale Hubbard

Formerly 'aZooZa'
The Originals
Legacy Exclusive Member
Joined
Jan 24, 2003
Messages
5,578
Reaction score
91
Grep what? Post your Linux one-line parsers hee :)
 

Theo

New Member
The Originals
Joined
Feb 28, 2004
Messages
30,306
Reaction score
2,217
Off the top of my head:

cat zonefile | [FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=-1]grep '\<florida' > florida-results.txt[/SIZE][/FONT]
 

Dale Hubbard

Formerly 'aZooZa'
The Originals
Legacy Exclusive Member
Joined
Jan 24, 2003
Messages
5,578
Reaction score
91
No need to 'cat' :-) Just the 'grep' :D
 

Theo

New Member
The Originals
Joined
Feb 28, 2004
Messages
30,306
Reaction score
2,217
Let's see how Windows would do the same in a DOS prompt :D
 

audubon

New Member
The Originals
Legacy Exclusive Member
Joined
Oct 14, 2002
Messages
90
Reaction score
7
Let's see how Windows would do the same in a DOS prompt
findstr "^florida" zonefile > florida-results.txt
 

Dale Hubbard

Formerly 'aZooZa'
The Originals
Legacy Exclusive Member
Joined
Jan 24, 2003
Messages
5,578
Reaction score
91
I can do it in Windows too :D
 

kengreenwood

Platinum Lifetime Member
Legacy Exclusive Member
Joined
May 11, 2006
Messages
332
Reaction score
3
Why not load it in to a database ? I loaded over 200 million .com's into a table and I'll be able to build a php script that can rip through finding matches on whatever you could possible want using REGEXP. That way, you can run queries over the web easily.
 

south

DNF Addict
Legacy Exclusive Member
Joined
Dec 31, 2006
Messages
4,688
Reaction score
168
Can DOS process files a few gigabytes in size?

The filesystem wouldn't support a file over 2 gb if I remember correctly. DOS itself shouldn't care. The language also might have issues.
 

kengreenwood

Platinum Lifetime Member
Legacy Exclusive Member
Joined
May 11, 2006
Messages
332
Reaction score
3
The best way to find strings in a 6 gigabyte + file is to load it into a database table and to use SQL to find what you need. By indexing the domain field you can retrieve hits on a string in a couple seconds.
 

audubon

New Member
The Originals
Legacy Exclusive Member
Joined
Oct 14, 2002
Messages
90
Reaction score
7
Can DOS process files a few gigabytes in size?

NTFS supports file sizes of around 16 Terabytes. On computers running Windows NT-based operating systems (2000, XP, Vista), we don't have DOS per se, but instead there is a DOS interpreter (cmd.exe), which is a native program. I don't recall the file-size limitations of MS-DOS, but I have used the DOS-like commands of the command-line interpreter to process .com zone files on computers running Windows 2000 and XP.

Another option if you're running Windows is to install ActivePerl.
 

Dale Hubbard

Formerly 'aZooZa'
The Originals
Legacy Exclusive Member
Joined
Jan 24, 2003
Messages
5,578
Reaction score
91
Yes, DOS can process multi Gb sequentially. Any length.

In >process
Out > processed

No limit.
 

kengreenwood

Platinum Lifetime Member
Legacy Exclusive Member
Joined
May 11, 2006
Messages
332
Reaction score
3
Ok - I loaded 180 million of the .com zone file records into a database table on my server and even without an index (which will take some time to build with that amount of data), it only took about 10 seconds to find the 112,744 records that start with "FLORIDA". I wasn't expecting that many!

- correction: I needed to do a DISTINCT due to the fact that domains have multiple name servers... the actual count is 49,796 and it took about 30 seconds...need to get that index on there.
 
Last edited:
Status
Not open for further replies.
Top Bottom