Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebdraven/whois
https://github.com/sebdraven/whois
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sebdraven/whois
- Owner: sebdraven
- License: gpl-2.0
- Created: 2013-02-11T15:15:29.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-11T16:03:06.000Z (about 12 years ago)
- Last Synced: 2024-12-17T16:24:42.226Z (about 2 months ago)
- Size: 113 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
###################
# whois - a python whois service
#
# whois is a service dedicated at discovering machines
# from their IP address.
#
# Copyright Jean-Michel Philippe (c) 2007
#
#
# This is open source software released under the GPL license.
# The full text of this license is found in the file 'LICENSE',
# included with this source code package.
###################Credits
=======* Original code to query whois Internet servers from Fredrik Lundh
posted on:
http://mail.python.org/pipermail/python-list/2000-March/028122.htmlInstallation
============Linux
-----Uncompress the archive and install the Python module as root:
# git clone [email protected]:sebdraven/whois.git
# cd whois/
# python setup.py installYou're done!
Typical use
===========Import whois module:
Full Internet whois query:
>>> Whois = whois.WhoisConsumer('194.109.137.218')
>>> whois.WhoisRequest(Whois, '194.109.137.218', whois.WhoisServer)
>>> whois.asyncore.loop()
>>> print Whois.text
OrgName: RIPE Network Coordination Centre
OrgID: RIPE
Address: P.O. Box 10096
City: Amsterdam
StateProv:
PostalCode: 1001EB
Country: NL
ReferralServer: whois://whois.ripe.net:43
NetRange: 194.0.0.0 - 194.255.255.255
CIDR: 194.0.0.0/8
NetName: RIPE-CBLK2
NetHandle: NET-194-0-0-0-1
Parent:
NetType: Allocated to RIPE NCC
NameServer: NS-PRI.RIPE.NET
NameServer: NS3.NIC.FR
NameServer: SUNIC.SUNET.SE
NameServer: NS-EXT.ISC.ORG
NameServer: SEC1.APNIC.NET
NameServer: SEC3.APNIC.NET
NameServer: TINNIE.ARIN.NET
Comment: These addresses have been further assigned to users in
Comment: the RIPE NCC region. Contact information can be found in
Comment: the RIPE database at http://www.ripe.net/whois
RegDate: 1993-07-21
Updated: 2005-08-03
# ARIN WHOIS database, last updated 2007-03-24 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.