Virtualmin provides default server template that can be used to configure dns during creating of a new Virtual Server. We can change this default to implement our 'style' in dns record. Go to Virtualmin tab, System Settings, and Server Templates. Choose Default Settings, select Bind DNS domain and click Change. This is my custom configuration for dns record:
- BIND DNS records for new domains:
$ttl 38400
@ IN SOA ns1.${DOM}. hostmaster.${DOM}. (
1456307163
10800
3600
604800
38400 )
${DOM}. IN A ${IP}
www.${DOM}. IN A ${IP}
ftp.${DOM}. IN A ${IP}
m.${DOM}. IN A ${IP}
localhost.${DOM}. IN A 127.0.0.1
webmail.${DOM}. IN A ${IP}
admin.${DOM}. IN A ${IP}
mail.${DOM}. IN A ${IP}
${DOM}. IN MX 5 mail.${DOM}.
${DOM}. IN TXT "v=spf1 a mx a:${DOM} ip4:${IP} ?all"
${DOM}. IN NS ns1.${DOM}.
${DOM}. IN NS ns2.${DOM}.
ns1.${DOM}. IN A ${IP}
ns2.${DOM}. IN A [change-ip-to-your-slave-dns-server]
- Use only the records above: checked
- Address records for new domains: unchecked all
- Default TTL for DNS records: Use BIND module setting
- Add nameserver record for this server -> unchecked
- Add sub-domain DNS records to parent domain? No
- Master DNS server hostname: Automatic (from system's hostname)
- Add SPF DNS record? No
- Does SPF record cover all senders? No
- Add DMARC DNS record? No
- Additional named.conf directives for new zones: None
- Automatically add named.conf directives: also-notify allow-transfer
- Create DNSSEC key and sign new domains? No
You can check your dns entry using from this site https://ednscomp.isc.org/ednscomp/