alias of hostname domain - dns bug

I've runned a vps with hostname 'ns1.maindomain.com' and set dns entries of server which are asked in virtualmin configuration wizard to : ns1.maindomain.com , ns2.maindomain.com

Now, every alias domain I am adding to the server is getting its own name servers and soa records ! For example I add maindomain.net as alias, when I see its dns records, they seems as follow :

maindomain.net.  IN  NS  ns1.maindomain.net.
maindomain.net. IN  NS  ns2.maindomain.net.
Status: 
Closed (fixed)

Comments

Mostafa's picture
Submitted by Mostafa on Fri, 08/26/2011 - 05:31

I've made a virtualserver with hostname domain (maindomain.com) and then trying to add alias to this cause each alias get its own nameservers and acts as a hostname which is wrong.

Howdy -- each Virtual Server (be it a top-level Virtual Server, a Sub-Server, or an Alias Server) would get it's own DNS zone file.

Each DNS zone should indeed have a set of NS records and a SOA... so that's all intentional :-)

Is there something different you were expecting to see?

Mostafa's picture
Submitted by Mostafa on Fri, 08/26/2011 - 09:43

The dns zone file is seperate in /var/named/ file and there is no problem here.

Why the Alias domains of hostname virtualserver are getting their own NS zons?? This is incorrect. Please see : I've set the default master NS records to ns1.maindomain.com and ns2.maindomain.com in virtualmin configuration wizard.

So I should set ns1.maindomain.com and ns2.maindomain.com for all my other domains which I want to use them on the server, This is OK I do it. For new virtual servers and alias of them the NS records are set to :

newdomain1.com. in NS ns1.maindomain.com.
newdomain1.com. in NS ns2.maindomain.com.

It's completely correct. BUT just create a virtual server with the domain of maindomain.com (which maindomain is your default hostname and so the default master NS domain), The try to create some alias on it, e.g. parkdomain-on-maindomain.com) You will see the alias domains will get these NS records :

parkdomain-on-maindomain.com. in NS ns1.parkdomain-on-maindomain.com.
parkdomain-on-maindomain.com. in NS ns2.parkdomain-on-maindomain.com.

But I've set the DNS entries of parkdomain-on-maindomain.com to ns1.maindomain.com and ns2.maindomain.com and the problem is here. The corret zones should be :

parkdomain-on-maindomain.com. in NS ns1.maindomain.com.
parkdomain-on-maindomain.com. in NS ns2.maindomain.com.

I've done my best to explain the bug I've founded in a clear way :)

Ok, I see the bug now .. this can happen if your master nameservers are in the same domain that is being aliased.

I will fix this in Virtualmin 3.88.

Automatically closed -- issue fixed for 2 weeks with no activity.

Mostafa's picture
Submitted by Mostafa on Sun, 09/11/2011 - 03:12

This is very hurting and bothering bug ! Please release the new version asap.

It will be released this week.