Reply

Can you create a host record via the API without a valid DNS name?

[ Edited ]
Techie
Posts: 4
1082     0

Hi,

 

I have a unique situation where I want to be able to add host records with extattributes however I don't wish to use a valid DNS hostname in the 'name' field. 

 

So basically I don't want to use the DNS functionality at all.

 

I seem to be able to do this via the GUI fine but just going into the network view and adding a new host. I am able to put anything in the 'name' field.

 

However if I try to add a host record via the API ( at least the ansible modules that I have tested I get the following error) 

 

Client.Ibap.Data.Conflict. 

"msg": "The action is not allowed. A parent was not found.", 

    "operation": "create_object", 

    "type": "AdmConDataError"

 

Is it possible to create a host record without a valid DNS name? 

 

thanks.

 

 

Re: Can you create a host record via the API without a valid DNS name?

[ Edited ]
Community Manager
Community Manager
Posts: 209
1082     0

Yes, just change the host naming policy first.  (Grid DNS properties) Either create a new regex policy to allow your new characters, or change the policy to allow any characters.

 

This isn't a good idea if you ever intend to serve DNS in this environment.  I'd reccomend instead following DNS naming standards and using the comments attribute or an EA to store non-standard data or descriptions.

Re: Can you create a host record via the API without a valid DNS name?

Posts: 5
1082     0

Hello, 

 

I could not find any regex tab in my Grid properties?

 

Also, I created a new post regarding the parent not found issue (which I could solve with this regex configuration I guess):

https://community.infoblox.com/t5/API-Integration/The-action-is-not-allowed-A-parent-was-not-found/m... 

 

Thanks

Showing results for 
Search instead for 
Did you mean: 

Recommended for You