Enable DNS service on member via API

[ Edited ]
Posts: 2
1106     0

Hello All,


I'm currently trying to automate the deployment of my Infoblox virtual appliances in Azure.  I've had fairly good success up until the last step which is to enable the DNS service on the member.  I'm using the command:


curl -k -u <User>:<Password> -H 'content-type: application/json' -X PUT "https://<GMIP>/wapi/v2.11/member:dns/<MemberReference>:<MemberFQDN>?_return_as_object=1" -d '{"enable_dns":true}'


I receive the following error:


{ "Error": "AdmConDataError: has no member enable_service",
"code": "Client.Ibap.Data",
"text": " has no member enable_service"


I have not been able to figure out what is going wrong, any help you can provide is very much appreciated!

Re: Enable DNS service on member via API

Community Manager
Community Manager
Posts: 204
1107     0

Here's a multibody request to:

1: retrieve a reference to an appliance's DNS properties, given the appliance's name

  (and store that in the member_ref variable)

2: enable the DNS service for that appliance


Note that you may need to separately configure the DNS server to llisten on IPv6 and/or additional interfaces, depending on your needs.  It's pretty common to configure an IPv6 address on an appliance but forget to enable DNS on IPv6.


curl -k -u admin:infoblox -H "Content-Type: application/json" \
-X POST  '' -d \
    "method": "GET",
    "object": "member:dns",
    "data": {"host_name": ""},
    "assign_state": {"member_ref": "_ref" },
    "enable_substitution": true
    "enable_substitution": true,
    "method": "PUT",
    "object": "##STATE:member_ref:##",
    "data": {"enable_dns": true},
    "discard": true

Re: Enable DNS service on member via API

Posts: 2
1107     0

This works perfectly!  Thank you so much I appreciate you taking the time to help me out.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Demo Video: Infoblox Cloud Automation