Skip to content

Python module for performing DNS Lookup on lists of domains

License

Notifications You must be signed in to change notification settings

dalgibbard/iplookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iplookup

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 Example

pip install iplookup

Example usage

from iplookup import iplookup
ip = iploopup.iplookup
print(ip(["google.com", "example.com"]))
print(ip("yahoo.com"))

About

Python module for performing DNS Lookup on lists of domains

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages