Can a host record and associated alias be in different zones?

[ Edited ]
Posts: 70
12250     0

I have one particular zone that is in two different DNS views.  Inside this zone I have a host record that has multiple aliases defined for that host record.  Some of the aliases are not in the same domain as the "parent" host record.  In the external DNS view all of the aliases look correct.  When I look at the internal DNS view, NIOS has automatically changed any aliases that are not in te same domain as the host record by adding the domain name of that zone to the alias.  For example:


DNS view: external (this works properly)

Host record:



DNS view: internal (NIOS keeps changing the alias)

Host record:



When I copied the host record from the external DNS view to the internal DNS view (or recreated it in the internal DNS view) I noticed that NIOS does not like it when the alias has a different domain name from the original host record name and will append the domain name to it.  Only the internal DNS view does this.  What is going on here?


Re: Can a host record and associated alias be in different zones?

Posts: 70
12251     0

I've discovered that if I create the zone inside the internal DNS view I can now add that one alias correctly.  Problem is I don't want to have to add that zone to the internal view.  My internal view forwards to the external view so I shouldn't have to have every zone in both DNS views.  Am I going to have to remove all the aliases and create distinct CNAME records instead?  This isn't good.  Smiley Sad

Re: Can a host record and associated alias be in different zones?

Community Manager
Community Manager
Posts: 39
12251     0

Hi Clark,


The behavior that you are seeing is working as per design.


What you are trying to achieve is like creating a CNAME record "" in your grid without any zone called You cannot create it because you are not serving the zone at all. If you want to serve the record, you MUST have the zone or the server will do it recursively.


Let me explain with a scenario.


2 zones in the same view configured as Primary: and
1 zone in the same view configured as secondary with external primary:

Host Record FQDN :
Host Record IP:
Host Record Aliases:,,


After adding the host aliases, you would find that the Aliases where the domain name that does not match any zones which are configured as primary, the name of the zone gets appended.


This is what it will look like:,


Moreover, you would get a message: Cannot add the host alias to a zone that is secondary" since the zone is secondary(with external primary) and you cannot add records in an external primary zone. 

Alias cannot be added into an non-auth zone




Working of an Alias record:


If a query comes for an Alias record, it will try to resolve the A record and thereby its IP.


In the above scenario, if a query comes for, the server will see that is a CNAME for and it will resolve to the IP


If the query is for, since we are not at all serving the domain, then it MUST do a recursive query.


Alias --> Host/A record --> IP
Host/A record does not resolve to a CNAME, it will resolve only to an IP.





Common misunderstanding:


Users gets confused with the terminology when it comes to a CNAME and ALIAS.


In CNAME Record, the field ALIAS is the FQDN of the ALIAS record and it has to be created in a Primary Zone.


The field "Canonical Name" is the field where you can put the name to which it should resolve. It can be either a record inside the Grid served by Infoblox or it can be a completely external record.


Similarly, in a Host Record, the ALIAS field is same as the CNAME record. The record should be inside a zone served by Infoblox.


Hope this clarifies!

Re: Can a host record and associated alias be in different zones?

Posts: 70
12251     0

That makes sense.  In order to get around this I will remove any aliases that do not live in the same zone as the host record.  I will edit the zone where the alias is from and add an A record there.  This works in the lab.  

Showing results for 
Search instead for 
Did you mean: 

Recommended for You