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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6492754d8882794c77000d0445e6971a0c8576f3ac82738b73b3894edbda8ed6 |
|
MD5 | 74eb9368f5b701ac62e7e39bb792f44f |
|
BLAKE2b-256 | bac59502851745d80d7986e865a1ade26562c0293620def56a9d20905b9d26f6 |