Skip to content

simple Python script that takes a list of IPs or DNS names and outputs the owner and region information.

License

Notifications You must be signed in to change notification settings

workflow-builder/ip-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip-lookup

simple Python script that takes a list of IPs or DNS names and outputs the owner and region information.

Features:

Accepts both IP addresses and DNS names as input Automatically resolves DNS names to IPs Outputs owner (organization) and region (location) for each entry Saves results to an output file

usage: clone this respository

python ip_lookup.py input.txt output.txt

Input file format (one per line): sample

8.8.8.8
google.com
1.1.1.1
cloudflare.com

The script will:

Read your list of IPs/DNS names Resolve any DNS names to IP addresses Look up owner and region information using a free API Display progress in the console Save formatted results to the output file

About

simple Python script that takes a list of IPs or DNS names and outputs the owner and region information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages