https://github.com/sbarbett/udns_ssearch
A script for searching through UDNS subaccounts
https://github.com/sbarbett/udns_ssearch
dns sysadmin-tool ultradns vercara
Last synced: about 1 month ago
JSON representation
A script for searching through UDNS subaccounts
- Host: GitHub
- URL: https://github.com/sbarbett/udns_ssearch
- Owner: sbarbett
- License: mit
- Created: 2023-09-23T22:35:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-28T21:33:20.000Z (about 2 years ago)
- Last Synced: 2025-06-23T18:49:14.968Z (4 months ago)
- Topics: dns, sysadmin-tool, ultradns, vercara
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# udns_ssearch
This script fetches information about UltraDNS subaccounts, zones, and pools. By default, this will pull each subaccount from the given primary account and search every zone in the account to see if any pool records are present. The output includes the subaccount name, zone name, pool name, and pool type. This can, of course, be refactored to iterate through other APIs within the subaccounts. It supports output in both JSON and CSV formats.
## Requirements
- Python 3
- Required Libraries:
- `requests`
- `tqdm`You can install these required libraries using the `requirements.txt` file located in the root directory:
```bash
pip install -r requirements.txt
```## Usage
The script can authenticate using either username and password or directly by providing an authentication token. The results can be either printed to the terminal or saved to an output file.
### Arguments
- `--username`: Username for authentication.
- `--password`: Password for authentication.
- `--token`: Directly pass the Bearer token.
- `--output-file`: Provide the name of the output file. If this argument isn't passed, the results will be printed to the terminal.
- `--format`: Specify the output format. Available choices are 'json' and 'csv'. Default is 'json'.### Examples
1. Using username and password with JSON output printed to terminal:
```bash
python ssearch.py --username --password
```2. Using token with JSON output saved to a file:
```bash
python ssearch.py --token --output-file ~/Desktop/results.json
```3. Using username and password with CSV output saved to a file:
```bash
python ssearch.py --username --password --format csv --output-file ~/Desktop/results.csv
```## License
[MIT License](LICENSE)