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

Howdy,

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!

-Eric

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.

[code]
$ttl 38400
$ttl 38400
mydomain.co.uk. IN SOA myserver.com. root.myserver.com. (
1335171711
10800
3600
604800
38400 )
mydomain.co.uk. IN NS myserver.com.
mydomain.co.uk. IN NS ns1.mynameserver.org.uk.
mydomain.co.uk. IN NS ns2.mynameserver.org.uk.
mydomain.co.uk. IN A 83.170.97.130
www.mydomain.co.uk. IN A 83.170.97.130
webmail.mydomain.co.uk. IN A 83.170.97.130
admin.mydomain.co.uk. IN A 83.170.97.130
mydomain.co.uk. IN TXT “v=spf1 a mx a:mydomain.co.uk ip4:83.170.97.130 ?all”
mydomain.co.uk. IN SOA myserver.com. root.myserver.com. (
1335171712
10800
3600
604800
38400 )
mydomain.co.uk. IN NS myserver.com.
mydomain.co.uk. IN NS ns1.mynameserver.org.uk.
mydomain.co.uk. IN NS ns2.mynameserver.org.uk.
mydomain.co.uk. IN A 83.170.97.130
www.mydomain.co.uk. IN A 83.170.97.130
webmail.mydomain.co.uk. IN A 83.170.97.130
admin.mydomain.co.uk. IN A 83.170.97.130
mydomain.co.uk. IN TXT “v=spf1 a mx a:mydomain.co.uk ip4:83.170.97.130 ?all”

[code]

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.

Hmm

I just noticed a possible reason / difference in the DNS

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

mydomain.com.	IN	NS	ns0.nameserver.co.uk.

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

@	IN	NS	ns0.nameserver.co.uk.

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 ?