Reply
Accepted Solution

Is there a way to get DNS domain via REST API?

kzhu_1
Techie
Posts: 8
4015     0

Hi, 

    Is there an API method to get all DNS domain form Infoblox?

 

 

Regards,

Kent

Answer?

kzhu_1
Techie
Posts: 8
4016     0

Is there any idea for this?

 

Regards,

Kent

Do you want all zones, or all FQDNs for end hosts?

Adviser
Posts: 132
4016     0

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.

Showing results for 
Search instead for 
Do you mean 

Recommended for You