- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
how to create zone with custom SOA MNAME
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2021 06:00 AM
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?
Solved! Go to Solution.
Re: how to create zone with custom SOA MNAME
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2021 11:39 PM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2021 12:09 PM
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?