Skip to main content

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”))

Release files for iplookup 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iplookup 1.0.5
File Size Uploaded
iplookup-1.0.5.tar.gz 1.8 kB Details

Release files / iplookup-1.0.5.tar.gz

Download URL iplookup-1.0.5.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6492754d8882794c77000d0445e6971a0c8576f3ac82738b73b3894edbda8ed6
BLAKE2b-256 checksum
How to use checksums
bac59502851745d80d7986e865a1ade26562c0293620def56a9d20905b9d26f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.5 This release

1 release file

1.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page