Page 1 of 1

DNS zone SOA fqdn strings are removed from dns record on adding subdomain

Posted: Sat Jul 30, 2016 5:49 pm
by juslintek
Hi, for some reason on latest stable vestacp is removing soa strings from domain zone. For example:

Code: Select all

$TTL 14400
@    IN    SOA    hosting.example.tld.    root.target.tld. (
                                            2016073003
                                            7200
                                            3600
                                            1209600
                                            180 )

@       14400   IN      NS              ns1.example.tld.
@       14400   IN      NS              ns2.example.tld.
@       14400   IN      A               192.168.0.102
mail    14400   IN      A               192.168.0.102
pop     14400   IN      A               192.168.0.102
ftp     14400   IN      A               192.168.0.102
@       14400   IN      MX      10      mail.target.tld.
@       14400   IN      TXT             "v=spf1 a mx ip4:192.168.0.102 ?all"
demo    14400   IN      A               192.168.0.102
www.demo        14400   IN      A               192.168.0.102
mail.demo       14400   IN      A               192.168.0.102
www     14400   IN      CNAME           target.tld.
When I add subdomain it become like this:

Code: Select all

$TTL 14400
@    IN    SOA    hosting.example.tld.    root.. (
                                            2016073003
                                            7200
                                            3600
                                            1209600
                                            180 )

@       14400   IN      NS              ns1.example.tld.
@       14400   IN      NS              ns2.example.tld.
@       14400   IN      A               192.168.0.102
mail    14400   IN      A               192.168.0.102
pop     14400   IN      A               192.168.0.102
ftp     14400   IN      A               192.168.0.102
@       14400   IN      MX      10      mail.target.tld.
@       14400   IN      TXT             "v=spf1 a mx ip4:192.168.0.102 ?all"
demo    14400   IN      A               192.168.0.102
www.demo        14400   IN      A               192.168.0.102
mail.demo       14400   IN      A               192.168.0.102
www     14400   IN      CNAME           target.tld.
webmail     1440   IN      A           target.tld.
And after named restart I get an error and have to go to ssh and manually fix this zone :-(