udns_zwhois
is a Python-based CLI tool that interfaces with Vercara's UltraDNS API to fetch zone properties. It also supplements this data with additional information sourced from WHOIS lookups.
udns_zwhois
├── src
│ └── zwhois.py
├── README.md
├── LICENSE.md
├── .gitignore
└── requirements.txt
- Python 3.x
- The following Python libraries:
ultra_auth
python-whois
tqdm
To install the required Python packages, navigate to the root directory of the project and execute:
pip install -r requirements.txt
This project relies on the ultra_auth module.
Run the zwhois.py
script from the command line:
python3 src/zwhois.py --username YOUR_USERNAME --password YOUR_PASSWORD
python3 src/zwhois.py --token YOUR_BEARER_TOKEN
Note: If you choose to supply a bearer token directly to the script, it will not be able to automatically refresh when it expires unless you also supply a refresh token.
You can specify the desired output format (either JSON or CSV) and write the results to a file:
python3 src/zwhois.py {AUTH_DETAILS} --output-file output.json --format json
Or for CSV format:
python3 src/zwhois.py {AUTH_DETAILS} --output-file output.csv --format csv
-
Fetching data using credentials and saving to a CSV:
python3 src/zwhois.py --username admin --password secret123 --output-file data.csv --format csv
-
Fetching data using a token and displaying on the terminal:
python3 src/zwhois.py --token ABCDEFGHIJKLMNOPQRSTUVWXYZ
This project is licensed under the terms of the MIT license. For more details, see LICENSE.md.