Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

NIOS DNS DHCP IPAM

Reply

how to create zone with custom SOA MNAME

Techie
Posts: 3
934     0

I am creating a dns zone with WAPI

I want my new zone to have an MNAME different from the default.

I can override the setting manually after the zone is created, but that is an extra step.

How can I set the MNAME in the POST command?

 

Re: how to create zone with custom SOA MNAME

Adviser
Posts: 179
934     0

Hi,

 

You could use the below API:

 

curl --location --request POST 'https://grid-master/wapi/v2.7/zone_auth?_return_fields%2B=member_soa_mnames,fqdn' \
--header 'Authorization: Basic YWRtaW46aW5mb2Jsb3g=' \
--header 'Content-Type: application/json' \
--data-raw '{
    "fqdn":"demo0.com",
    "member_soa_mnames":[{
                "grid_primary":"member1.localdomain",
                "mname":"test"
            }],
    "grid_primary":[{"name":"infoblox.localdomain"}]
}'

 

Hope this helps,

Krishna Vasudevan

 

Re: how to create zone with custom SOA MNAME

Techie
Posts: 3
935     0

this solution works well, thank you.

 

after creating the zone, with my custom MNAME, I import contents from another server and the MNAME is overwritten.

 

Is there a way for me to use WAPI to change the MNAME in the resulting zone?

 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You