Simple Python script to get an overview of which IP addresses are bound to which domain names. This is a quick prototype so do not expect any performance or proper handling of different scenarios.
- Python 2.7
- dnspython
python parse.py [filenames]
For example: python parse.py bind/*
or python parse.py example.com
Will produce a simple list into stdout
:
93.184.216.34
example.com
www.example.com
- File names are used for top level domain, eg. a valid filename would be
example.com
- A and CNAME records are parsed