Membership is FREE, giving all registered users unlimited access to every DNForum feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Need Good tool for Zone queries

Status
Not open for further replies.

A D

Level 14
Legacy Exclusive Member
Joined
Feb 20, 2003
Messages
15,040
Reaction score
1,188
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

Account Terminated
Joined
Feb 28, 2004
Messages
30,306
Reaction score
2,216
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'
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.
 

Dale Hubbard

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

Theo

Account Terminated
Joined
Feb 28, 2004
Messages
30,306
Reaction score
2,216
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'
Legacy Exclusive Member
Joined
Jan 24, 2003
Messages
5,578
Reaction score
91
No need to 'cat' :) Just the 'grep' :D
 

Theo

Account Terminated
Joined
Feb 28, 2004
Messages
30,306
Reaction score
2,216
Let's see how Windows would do the same in a DOS prompt :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

Level 3
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'
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.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 7) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom