whois-Informationen mit Net::Whois::Raw ermitteln

| | Kommentare (1)

Whois (engl. „who is": wer ist) ist ein Protokoll, mit dem von einem verteilten Datenbanksystem Informationen zu Internet-Domains und IP-Adressen und deren Eigentümern abgefragt werden können. (Quelle: Wikipedia).

Net::Whois::Raw von Walery Studennikov ermittelt ungeparste whois-Informationen.

Beispiel: whois Abfrage .org

#!/usr/bin/perl
use warnings;
use strict;

use Net::Whois::Raw;

my ($dominfo,$whois_server) = whois('perl.org');

print "$whois_server\n";

print $dominfo , "\n";

Das Programm liefert folgende Ausgabe (Personendaten durch ... ersetzt):

whois.pir.org

NOTICE: Access to .ORG WHOIS information is provided to assist persons in 
determining the contents of a domain name registration record in the Public Interest Registry
registry database. The data in this record is provided by Public Interest Registry
for informational purposes only, and Public Interest Registry does not guarantee its 
accuracy.  This service is intended only for query-based access.  You agree 
that you will use this data only for lawful purposes and that, under no 
circumstances will you use this data to: (a) allow, enable, or otherwise 
support the transmission by e-mail, telephone, or facsimile of mass 
unsolicited, commercial advertising or solicitations to entities other than 
the data recipient's own existing customers; or (b) enable high volume, 
automated, electronic processes that send queries or data to the systems of 
Registry Operator or any ICANN-Accredited Registrar, except as reasonably 
necessary to register domain names or modify existing registrations.  All 
rights reserved. Public Interest Registry reserves the right to modify these terms at any 
time. By submitting this query, you agree to abide by this policy. 

Domain ID: ...
Domain Name: ...
Created On: ...
Last Updated On: ...
Expiration Date: ...
Sponsoring Registrar: ...
Status: ...
Status: ...
Status: ...
Registrant ID: ...
Registrant Name: ...
Registrant Organization: ...
Registrant Street1: ...
Registrant Street2: ...
Registrant Street3: ...
Registrant City: ...
Registrant State/Province: ...
Registrant Postal Code: ...
Registrant Country: ...
Registrant Phone: ...
Registrant Phone Ext.: ...
Registrant FAX: ...
Registrant FAX Ext.: ...
Registrant Email: ...
Admin ID: ...
Admin Name: ...
Admin Organization: ...
Admin Street1: ...
Admin Street2: ...
Admin Street3: ...
Admin City: ...
Admin State/Province: ...
Admin Postal Code: ...
Admin Country: ...
Admin Phone: ...
Admin Phone Ext.: ...
Admin FAX: ...
Admin FAX Ext.: ...
Admin Email: ...
Tech ID: ...
Tech Name: ...
Tech Organization: ...
Tech Street1: ...
Tech Street2: ...
Tech Street3: ...
Tech City: ...
Tech State/Province: ...
Tech Postal Code: ...
Tech Country: ...
Tech Phone: ...
Tech Phone Ext.: ...
Tech FAX: ...
Tech FAX Ext.: ...
Tech Email: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...
Name Server: ...

Beispiel: Denic-Abfrage

#!/usr/bin/perl
use warnings;
use strict;

use Net::Whois::Raw;

my ($dominfo,$whois_server) = whois('perl-howto.de');

print "$whois_server\n";

print $dominfo , "\n";

Das Programm liefert folgende Ausgabe (Personendaten durch ... ersetzt):

whois.denic.de

% Copyright (c)2008 by DENIC
% Version: ...
%
% Restricted rights.
%
%
% Terms and Conditions of Use
%
% All the domain data that is visible in the whois search is protected
% by law. It is not permitted to use it for any purpose other than
% technical or administrative requirements associated with the
% operation of the Internet or in order to contact the domain holder
% over legal problems. You are not permitted to save it electronically
% or in any other way without DENIC's express written permission. It
% is prohibited, in particular, to use it for advertising or any similar
% purpose.
%
% By maintaining the connection you assure that you have a legitimate
% interest in the data and that you will only use it for the stated
% purposes. You are aware that DENIC maintains the right to initiate
% legal proceedings against you in the event of any breach of this
% assurance and to bar you from using its whois query.

Domain:      ...
Domain-Ace:  ...
Nserver:     ...
Nserver:     ...
Status:      ...
Changed:     ...

[Holder]
Type:         ORG 
Name:         ...
Address:      ...
Address:      ...
Pcode:        ...
City:         ...
Country:      ...
Changed:      ...

[Admin-C]
Type:         PERSON
Name:         ...
Address:      ...
Pcode:        ...
City:         ...
Country:      ...
Changed:      ...

[Tech-C]
Type:         ROLE
Name:         ...
Organisation: ...
Address:      ...
Pcode:        ...
City:         ...
Country:      ...
Phone:        ...
Fax:          ...
Email:        ...
Changed:      ...

[Zone-C]
Type:         ROLE
Name:         ...
Organisation: ...
Address:      ...
Pcode:        ...
City:         ...
Country:      ...
Phone:        ...
Fax:          ...
Email:        ...
Changed:      ...

Siehe auch

1 Kommentare

Der deutsche Domain-Registrar Denic hat seine whois-Dienste durch eine vorgeschaltete Captcha-Abfrage gegen automatische Abfragen durch Skripte gesichert. ...

Die Kommandozeilen-Version der whois-Abfrage bleibt zwar erhalten, ist ab sofort jedoch auf die Domain-Informationen beschränkt, die für Fehlerbehebungen bei technischen Problemstellungen benötigt werden, beispielsweise Nameserver und technische Kontaktdaten. Domain-Inhaber-Daten können nur noch über den neuen Captcha-gesicherten Zugang des webbasierten whois abgefragt werden.

Quelle: Whois-Dienste der Denic durch Captcha gesichert http://www.heise.de/newsticker/Whois-Dienste-der-Denic-durch-Captcha-gesichert--/meldung/145768

Jetzt kommentieren

Über diese Seite

Diese Seite enthält einen einen einzelnen Eintrag von Thomas Fahle vom 23.04.09 21:50.

Talk: Perl in RPM-Land ist der vorherige Eintrag in diesem Blog.

Iron Man Blogging Challenge ist der nächste Eintrag in diesem Blog.

Aktuelle Einträge finden Sie auf der Startseite, alle Einträge in den Archiven.

Blog Roll

Powered by

Powered by Movable Type 5.2.10

Creative Commons-Lizenz

Creative Commons License
Dieses Weblog steht unter einer Creative Commons-Lizenz.