8000 GitHub - sbarbett/udns_zwhois: A basic script that exports some zone properties from UltraDNS and outputs them with a bit of added WHOIS data
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A basic script that exports some zone properties from UltraDNS and outputs them with a bit of added WHOIS data

License

Notifications You must be signed in to change notification settings

sbarbett/udns_zwhois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

udns_zwhois

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.

Directory Structure

udns_zwhois
├── src
│   └── zwhois.py
├── README.md
├── LICENSE.md
├── .gitignore
└── requirements.txt

Requirements

  • Python 3.x
  • The following Python libraries:
    • ultra_auth
    • python-whois
    • tqdm

Installation

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.

Usage

Run the zwhois.py script from the command line:

Using credentials:

python3 src/zwhois.py --username YOUR_USERNAME --password YOUR_PASSWORD

Using a bearer token:

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.

Output Options:

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

Examples

  • 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

License

This project is licensed under the terms of the MIT license. For more details, see LICENSE.md.

About

A basic script that exports some zone properties from UltraDNS and outputs them with a bit of added WHOIS data

Topics

Resources

License

Stars

Watchers

Forks

Languages

0