Need a list of all secondary domain names in your account? This can be done using combination of portal and API.
Using the API
- Get list of all secondary domains in account
- API - v3/zones?&q=zone_type:SECONDARY+zone_status:ALL&limit=1000
- Max limit is 1000 so you will have to call this API 4 times for 3306 domains
- Call export API
- v2/zones/export
- Request body -
{"zoneNames":["zone.com."
] } //pass 250 zones from step 1 here - This can be automated using a loop in a python script
- Go to Tasks section in portal to download the files
Using the Portal
- Go to Domains page
- Set the pagination to 250 located at bottom of page
- Filter on Secondary domain type
- Select All domains (checkbox under +Add Domain, left of Domain)
- Click Export
- Click the right arrow (next to the pagination)
- Repeats steps 3-6 for the next list of 250 zones to export