Skip to main content

Module for looking up IPs from Domain Names

Project description

A small python module which accepts a single domain as a string, or multiple domains as a list, and returns a list of associated IPs (from both A record and CNAMEs).

  • For domains with multiple A records (RRDNS), all A record IPs are returned

  • IPv6 AAAA records are currently _NOT_ returned.

  • For domains which are CNAMEs, the IP of the CNAME is returned

  • If you give it an IP, it will return the IP back (so mixed lists are OK too)

Install::

pip install iplookup

Usage::

from iplookup import iplookup

ip = iplookup.iplookup

print(ip([“google.com”, “example.com”]))

print(ip(“yahoo.com”))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iplookup-1.0.5.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file iplookup-1.0.5.tar.gz.

File metadata

  • Download URL: iplookup-1.0.5.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for iplookup-1.0.5.tar.gz
Algorithm Hash digest
SHA256 6492754d8882794c77000d0445e6971a0c8576f3ac82738b73b3894edbda8ed6
MD5 74eb9368f5b701ac62e7e39bb792f44f
BLAKE2b-256 bac59502851745d80d7986e865a1ade26562c0293620def56a9d20905b9d26f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page