Web Hosting Talk







View Full Version : where domain was registered?


Lem0nHead
08-04-2008, 09:54 PM
hello
any ideas on how to make a script to find out in which registrar a domain was registered?
I can do it parsing Net::Whois::Raw (perl module) checking, for example "GodDaddy's database", "Resellone database", etc...
but is there some easier way?
I believe the whois server ends up needing to know which registrar to query, so it can returns it's database content, but I don't know how to get it in a easy way

thanks

qbert220
08-05-2008, 04:49 AM
Hi,

Doing a whois enquiry on the root (whois.internic.net) will give a redirect to the sponsoring registrar's database. You could use this to determine who the sponsoring registrar is.

$ whois webhostingtalk.com
[Querying whois.internic.net]
[Redirected to whois.godaddy.com]
--snip--

I'm not familiar with the Net::Whois::Raw perl module, but if you can do a raw query, then you should be able to get the redirect information.

Lem0nHead
08-05-2008, 10:52 AM
Hi,

Doing a whois enquiry on the root (whois.internic.net) will give a redirect to the sponsoring registrar's database. You could use this to determine who the sponsoring registrar is.

$ whois webhostingtalk.com
[Querying whois.internic.net]
[Redirected to whois.godaddy.com]
--snip--

I'm not familiar with the Net::Whois::Raw perl module, but if you can do a raw query, then you should be able to get the redirect information.

yes
that's what I used a few days ago
but when I moved to a FreeBSD server, their whois doesn't work the same way (it doesn't say to where it's being redirected :( )

qbert220
08-05-2008, 11:37 AM
I had the same problem with an older version of jwhois. I'm now using version 3.2.3 and that does redirects correctly.