- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Domain zone exists in 2 different "DNS Views" – How to specify one in new host API request?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 01:49 PM - edited 08-01-2022 01:51 PM
My question pretty well says it. I have a domain like "test.mycompany.com" in a DNS view called "test-ext" and a DNS view called "internal". So if I want to add a host record it defaults to my internal DNS view. I've experimented with different API calls and I cannot figure out if I can direct the new host to internal/test.mycompany.com or test-ext/test.mycompany.com. So at the moment no matter what I give it it goes to the internal view domain zone. Is there absolutely no way to direct a new host to my test-ext domain zone of the same name?
Solved! Go to Solution.
Re: Domain zone exists in 2 different "DNS Views" – How to specify one in new host API req
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 11:25 AM
When you create the host record, just tell it which DNS view to use, with the "view" field.
If you don't tell it which view, it will automatically use the default view.
For example:
curl -k1 -u admin:infoblox -X POST 'https://192.168.1.2/wapi/v2.11/record:host' -H "Content-Type: application/json" -d \ '{ "name": "newhost.example.org", "view": "Internal DNS", "ipv4addrs":[ { "configure_for_dhcp": false, "ipv4addr": "10.101.16.209" } ] }'
Re: Domain zone exists in 2 different "DNS Views" – How to specify one in new host API req
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 11:08 AM
Works as hoped! Thanks for your solution. This needs to be documented better in the WAPI documentation.