DNS zone SOA fqdn strings are removed from dns record on adding subdomain
Posted: Sat Jul 30, 2016 5:49 pm
Hi, for some reason on latest stable vestacp is removing soa strings from domain zone. For example:
When I add subdomain it become like this:
And after named restart I get an error and have to go to ssh and manually fix this zone :-(
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.
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.