Purpose is to export list of domains from Verisign
Purpose of get-verisign-zones.py script is to export domains from Verisign
You can see the documentation here, Verisign REST API Swagger
This script exports all domains. Before using it, you'll need to edit the apikey and account_id variables. See detailed information below in the Usage Example section.
I suggest that you use a read-only API user as a best practice.
Python 3.6 installed
The following modules installed:
- json
- requests
To run this from command line:
./get-verisign-zones.py
These are configurable items in the script:
1. Proxy Information:
The script assumes you don't need to go through a proxy. If you have a proxy setup at work, then edit the variables section of the script and put in the correct proxy for http_proxy & https_proxy.
You will also need to change this line in the script from:
verify=False
to
proxies=proxyDict, verify=False
2. Number of pages:
The script assumes that you have 10,000 or less zones with Verisign. They limit the return results to 500 per page. Increase the enumerate number from 21 to allow you to export all zones. For example, if you have 15,000 zones change 21 to 31.
Change the number 21 in this line in script:
h = enumerate(range(1, 21), 1)
- 0.0.1
- Initial version
Brian Bullard – dns.dhcp.ipam@gmail.com
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/ddiguy/verisign
- Fork it (https://github.com/ddiguy/verisign/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request