Now Available - Forrester's Total Economic Impact study. Discover millions in cost savings, unlock IT efficiency gains, and explore why NIOS DDI is a game changer. Get Your Copy here.

API & Integration, DevOps,NetOps,SecOps

Reply

Create DNS Host record and inherit extensible attributes

New Member
Posts: 4
1411     2

I want to create DNS host records and inherit extensible attribute values rather than set the attribute values on the host record itself. Does anyone know the WAPI syntax I need to use to tell NIOS to set extensible attributes to inherit on the host records I create?

EARe: Create DNS Host record and inherit extensible attributes

New Member
Posts: 11
1411     2

Hi andrewstjean,

 

You can just set the EAs on the parent network of a host record. When you create a host record under the parent the values will be automatically inherited.

 

Make sure the Enable Inheritance box is checked when creating the EA.

Re: EARe: Create DNS Host record and inherit extensible attributes

Moderator
Moderator
Posts: 267
1411     2

Pleaser note that for host records, inheritance is only applied for one of the host's IP addresses (either IPv4 or IPv6).  Using REST API, the IP address used for inheritance can be set using the "use_for_ea_inheritance" attribute.

 

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 \
'{
	"ipv4addrs":
	[
		{
			"configure_for_dhcp": false,
			"ipv4addr": "10.0.1.209"
		},
		{
			"configure_for_dhcp": false,
			"ipv4addr": "10.104.1.209",
			"use_for_ea_inheritance": true
		}
	
	],
	"name": "newhost.blox.corp",
	"view": "Internal DNS"
}'

Re: EARe: Create DNS Host record and inherit extensible attributes

New Member
Posts: 4
1412     2

I was missing the use_for_ea_inheritance attribute. Once I added that to my WAPI call creating host records started working as expected. Thanks for your help.

 

 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You