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