whois querying

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
visionmaster
Forum Contributor
Posts: 139
Joined: Wed Jul 14, 2004 4:06 am

whois querying

Post by visionmaster »

Hello together,

I´m trying out programming whois with PHP.

Following command just works out fine:

whois -h whois.denic.de -- -T dn spiegel.de

I found the instruction on the German homepage http://www.denic.de.
Now I would like to implement some querying of some other tlds, such as .com, .net, ...

E.g. the command whois -h whois.godaddy.com cnn.com

outputs something, but no detailed infos such as the whois-query of whois.denic.de outputed. It seems some parameters are missing to obtain the e.g. adress information.

Can someone help?

Thanks,
visionmaster
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

try using the NSI registry's whois server.. you can find the exact whois address on their site: http://www.nsiregistry.net
visionmaster
Forum Contributor
Posts: 139
Joined: Wed Jul 14, 2004 4:06 am

Post by visionmaster »

feyd wrote:try using the NSI registry's whois server.. you can find the exact whois address on their site: http://www.nsiregistry.net
Thanks for your response. Sorry, I can't find the list!

Regards,
visionmaster
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

whois.verisign-grs.com

the system at verisign will tell you which whois server has more spefic information (if it's not served from their servers)
RadixDev
Forum Commoner
Posts: 66
Joined: Sun Mar 14, 2004 11:27 am
Location: U.K.

Post by RadixDev »

TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability. VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
Now does that basically means you cannot use their whois server from a PHP script? and is there any other whois servers which could look up other domains?
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Post by AGISB »

I doubt you will find a domain registrar that lets you do this. The reason why why millions of spam emails are send is that in the past people were able to querry the whoisdatabases including all EMAIL addresses.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you could slap together your own private whois server.. that would skirt the VeriSign restriction.
RadixDev
Forum Commoner
Posts: 66
Joined: Sun Mar 14, 2004 11:27 am
Location: U.K.

Post by RadixDev »

Damn, i wanted to have a page where a user could type hostnameinto a textbox and the page will look it up on a whois server. Guess I have to link it to verisign's website...
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

feyd wrote:you could slap together your own private whois server.. that would skirt the VeriSign restriction.
How would you go about doing that?
Post Reply