Infoblox Exchange Cybersecurity Roadshow 2020 – Join us!
North America | Europe | Middle East/Africa | Asia-Pacific

API & Integration

Reply
Highlighted
Accepted Solution

record:host not returning aliases for a host when there are aliases...

joelcollinsdc
Techie
Posts: 6
5690     0

Sorry if this isn't a logical question.  I'm wondering why when I do

 

/wapi/v2.3/record:host?_return_fields%2b=name,zone,aliases&name=server.example.org

 

aliases is blank

 

but when I do

 

/wapi/v2.3/record:cname?canonical=server.example.org

 

I see cname records...

 

Are aliases and cnames not the same thing?

Re: record:host not returning aliases for a host when there are aliases...

GHorne Community Manager
Community Manager
Posts: 248
5691     0

Correct.

 

CNAMES are real DNS records and individual entries in the database. They have no references to their Canonical or any other records. They are useful for cnames that point outside your authoritative namespace

 

ALIASES are synthetic CNAMES and are just references on a HOST object. NIOS will generate a CNAME record as long as the host exists. Remove/disable the host, and the cname disappears. 

 

 

Re: record:host not returning aliases for a host when there are aliases...

Adviser
Posts: 40
5691     0

To add a little more context

 

You can create a cnames (aka aliases) in Infoblox two ways:

 

1.  Create an individual cname record.  

-or-

2.  Add an "alias" to a host record.

 

If you do #1 above, then this creates a record:cname object in Infoblox.

 

If you do #2 above, then it attaches an alias to the record:host object in Infoblox

 

Both approaches result in cnames as far as DNS resolution goes.

 

However, to get/modify/delete the cname, you have to access the actual object that contains the cname.

 

It looks like in your example below that the cname is an individual record:cname object and not an attribute of the host record.

Showing results for 
Search instead for 
Do you mean 

Recommended for You