Corrupt BIND DNS Zone Files

For a number of virtual servers when I change the DNS records it creates multiple duplicate records in the zone file and therefore if BIND is restarted it won’t as error of “multiple RRs of singleton type”. Also does the same to any alias servers zone files. It also creates empty .hosts files in /var/named for those domains

This only happens to some domains all of which are using the same server template.

Any pointers as to what to look at I would be most grateful.

CentOS Linux 5.10
Virtualmin 4.06.gpl GPL
Webmin 1.675


Hmm, I haven’t heard of anything like that happening before, that’s unusual!

Is there any chance you could post a screenshot of the Server Configuration -> DNS Records screen?

That might help us understand better why that’s occuring, as well as help us figure out how to correct that. Thanks!


Attachment of record before saving

This is an example of a record of an alias showing the duplications. It is not just aliases which have duplication but also the main domain record.

$ttl 38400
$ttl 38400 IN SOA (
38400 ) IN NS IN NS IN NS IN A IN A IN A IN A IN TXT “v=spf1 a mx ip4: ?all” IN SOA (
38400 ) IN NS IN NS IN NS IN A IN A IN A IN A IN TXT “v=spf1 a mx ip4: ?all”


Create a top level site, create an alias, manually edit the DNS of the top level by just saving it. Then in the DNS of the alias each time the top level sites DNS is saved it duplicates the DNS of the alias.


I just noticed a possible reason / difference in the DNS

In the ones that got corrupted the name server line looks like	IN	NS

Whereas in other records which I think are generally ok they are written as


I’m not sure if this applies to all I would have to test further but please advise.

P.S. The first DNS line the nameserver is an external server.

Hi andreychek

Any thoughts on this yet ?