So, I hope to be clear. I configure Bind from menĂ¹ WebMin>Server>Bind DNS Server to create zone files like this:
$ttl 86400
pippo.it. IN SOA "name of the server". "email". (
1227027259
86400
1800
605000
86400 )
pippo.it. IN NS "name of the server".
pop3. IN CNAME "name of the server"
imap. IN CNAME "name of the server"
smtp. IN CNAME "name of the server"
www. IN A "public ip server"
pippo.it. IN NS "name of the server".
pippo.it. IN MX 10 "name of the server".
It works well, but when I create a new Virtual Server from menĂ¹ Virtualmin>Create Virtual Server, the zone file is created like this:
$ttl 86400
@ IN SOA "name of the server". "email". (
1227027823
86400
1800
605000
86400 )
@ IN NS "name of the server".
pippo.it. IN A 192.168.1.10
www.pippo.it. IN A 192.168.1.10ftp.pippo.it. IN A 192.168.1.10m.pippo.it. IN A 192.168.1.10
localhost.pippo.it. IN A 127.0.0.1
webmail.pippo.it. IN A 192.168.1.10
admin.pippo.it. IN A 192.168.1.10
pippo.it. IN TXT "v=spf1 a mx a:pippo.it ip4:192.168.1.10 ?all"
I think this is the default.
Then i tell you the problem and after your suggestion I configure Vitualmin Server Template to create Bind zone files with the option "Use only the records above" and this template:
$ORIGIN $DOM.
$TTL 86400 ; 1 day
@ IN SOA "name of server". "email".
( 2004102702 ;serial
86400 ;refresh
1800 ;retry
605000 ;expire
86400 ;TTL
)
@ IN NS "name of server".
@ IN NS "name of server".
@ IN MX 10 "name of server".
pop3. IN CNAME "name of server".
imap. IN CNAME "name of server".
smtp. IN CNAME "name of server".
www. IN A "server ip"
I ask you why Virtualmin don't use the Bind configuration i made in WebMin? Do I made any mistake? There is something else to configure?
Thanks.