- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Is there a way to get DNS domain via REST API?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2015 07:54 PM
Hi,
Is there an API method to get all DNS domain form Infoblox?
Regards,
Kent
Solved! Go to Solution.
Answer?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-30-2015 10:48 PM
Is there any idea for this?
Regards,
Kent

Do you want all zones, or all FQDNs for end hosts?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-31-2015 05:19 AM
What exactly do you mean by "all DNS domains"? If you want all the DNS zones that your Infoblox system manages, do a GET operation for zone_auth objects (requires at least WAPI version 1.1):
curl --tlsv1 --insecure --user 'admin:infoblox' 'https://gm.example.com/wapi/v1.1/zone_auth'
The fqdn
field in the returned objects will contain the fully-qualified domain names of forward-mapping zones (e.g., "example.com") or for reverse-mapping zones the associated network in CIDR format (e.g., "192.168.0.0/24").
If you want all the domain names your Infoblox system has defined with the various zones, then do multiple GET operations to return the host records:
curl --tlsv1 --insecure --user 'admin:infoblox' 'https://gm.example.com/wapi/v1.0/record:host'
and the A records:
curl --tlsv1 --insecure --user 'admin:infoblox' 'https://gm.example.com/wapi/v1.0/record:a'
In the returned objects the name
field will contain the fully-qualified domain name.