Bind crash after regular DNS edit (not manual).

Hello,

Couple of times happen that Bind goes down and refuse to start with an error in one zone. (This should not happen and Bind should ignore failed zones but this is another story.)

Here is the reason for the crash: One user have domain.com and sub.domain.com added in virtualmin. So all the DNS records are in the domain.com zone. And by standard sub.domain have A record. If for some reason you try to add CNAME record for sub.domain.com you will succeed but the DNS server crash because you can not have A and CNAME records for the same domain/subdomain. But Virtualmin should prevent that.

Another case that just happen: User have domain.com and CNAMES sub1.domain.com sub2.domain.com But decide to add them as virtual servers in virtualmin and DNS server crashed.

All that is because CNAME can not be used with other records for the same name. But when virtualmin installs the sub-domains it adds A and MX records for them.

From RFC1034 section 3.6.2: If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different.

https://www.ietf.org/rfc/rfc1034.txt

Status: 
Closed (fixed)

Comments

You're right, this shouldn't be allowed by Virtualmin.

Did you do this edit on the Server Configuration -> DNS Records page?

Hi Jamie,

Yes, I did all the configuration from Server Configuration -> DNS Records page .

OK, this will be prevented in the next Virtualmin release.