Web Hosting Talk







View Full Version : Display All Domains on Nameserver


inkhead
05-30-2002, 03:34 PM
I've seen here that people posted scripts that would take a DNS server and list all the domains that it was authoritive for. What command is this? I cannot find any information about this on the internet anywhere. Is there a way I can do this with nslookup? the only think i have figured out so far is ls -d domain.com to list all the cname or a name records with one domain. I want to do something similar to the script that list all the domains on the DNS server. How do these scripts work? Is it something I can do with nslookup?

inkhead
05-30-2002, 07:45 PM
Can not believe that a single person here doesn't know how this is done? Comeon admins you did it for your webhostingtalk.com If it at least can't be done through NSLookup somebody point me to a similar script that does this or at least point me in the right direction. Thanks.

thewitt
05-30-2002, 07:52 PM
The only way I know how to do this is to search the zone files.

I know of no nslookup or dig commands that will help.

Sorry.

-t

priyadi
05-30-2002, 09:30 PM
It is impossible to do such thing, otherwise it would be a huge privacy problem. Why would you want to do that?

inkhead
05-30-2002, 09:33 PM
lol it's NOT impossible, because webhosting talk had a feature that let you do it, as well as several other hosts, they took it down because it was getting WAY too much use. Obviously people don't like the idea of somebody else seeing if they are telling the truth about the number of domains they host. But I promise you it can be done.

The Prohacker
05-30-2002, 09:35 PM
Originally posted by priyadi
It is impossible to do such thing, otherwise it would be a huge privacy problem. Why would you want to do that?

Its totally possible....

You can download the master zone file from verisign, and then download the NSi-SDK and use a perl script from it called nsgrep, and it will list the domains assosiated with name server....

priyadi
05-30-2002, 09:38 PM
Ahh, they didn't do that by querying name servers, they did it by using the TLD zone file from Verisign. http://www.verisign-grs.com/tld/tldForm.html

priyadi
05-30-2002, 09:39 PM
Originally posted by The Prohacker


Its totally possible....

You can download the master zone file from verisign, and then download the NSi-SDK and use a perl script from it called nsgrep, and it will list the domains assosiated with name server....

Yes, but not by querying name servers for that information. And it won't list domain names outside TLDs, like ones using country codes.

The Prohacker
05-30-2002, 09:47 PM
Originally posted by priyadi


Yes, but not by querying name servers for that information. And it won't list domain names outside TLDs, like ones using country codes.


That wouldn't be in the DNS RFC.... Last time I checked it wasn't atleast :D

There might be country TLD's might have master zone files, I'm not quite sure where to get them though...

inkhead
05-30-2002, 09:51 PM
So basically everytime i wanted the update I would have to download this file right? Isn't this file rather large or is it per DNS server? Or is it a huge master file list?

The Prohacker
05-30-2002, 10:28 PM
Originally posted by inkhead
So basically everytime i wanted the update I would have to download this file right? Isn't this file rather large or is it per DNS server? Or is it a huge master file list?

The master TLD file has a list of every .com .net .org and the name servers assosicated with it... Its rather big :D

allan
05-31-2002, 10:10 AM
Some registrars will allow you to issue a query on their name server for all domains that are registered, through that registrar, to a specified host.

The vast majority will not allow you to do it, and it only covers the domains registered through that registrar. So, if a host has domains registered through multiple registrars issuing the query will return a very limited subset of information.

thesmallguyshost
06-03-2002, 01:23 AM
Originally posted by priyadi


Yes, but not by querying name servers for that information. And it won't list domain names outside TLDs, like ones using country codes.


No..... when the script was available here on WHT awhile back, I tried it on my own servers and it displayed every domain, even .uk, .ca, and .at for examples.

webx
06-03-2002, 01:30 AM
When I was BIND fan, there was a configuration where you would explicitly deny any request for listing of all domains running on your server. That was about three years ago :o I don't even remember what configuration it was ;)

But I did check a few ISPs what they were hosting :D Yes, it is possible, but I think this might have been turned off in default configuration now.

tinydns fan now ;)