Reply

how to create zone with custom SOA MNAME

New Member
Posts: 3
2821     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: 181
2822     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

New Member
Posts: 3
2822     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