Custom DNS record in Virtualmin template - Fails to read SOA record

Attempting to use any custom DNS record template with the current release (3.01)fails with an error.

Failed to save server template : Exactly one SOA record must exist in the template

I have a custom DNS record template I have used successfully with Virtualmin Pro EA1. Using this DNS record in a custom template under EA3 fails with an error.

Work around: Leave DNS record set to default values and edit in Bind record manually in Bind module for each domain created.

Webmin Version 1.250 - (Redhat Enterprise Linux 4ES)

Virtualmin Virtual Servers
Version 3.01, master admin mode

Servers/Virtualmin Virtual Servers/Server Templates

BIND DNS records for new domains = Records below ..

Complete DNS record entered in text box

Record mode = Use only the records above

Always results in and error on saving the template:

Failed to save server template : Exactly one SOA record must exist in the template

Steps to reproduce:

1. Create virtual host using default template
2. Copy and paste complete DNS record from Bind module into "BIND DNS records for new domains" section
3. Set BIND DNS records for new domains = Records below ..
4. Set Record mode = Use only the records above
5. Save template - Error is produced

DNS record as created by Virtualmin in default configuration:
------------------------------------------------------------
$ttl 38400
@ IN SOA server.arkadias.com. root.server.arkadias.com. (
1136175370
10800
3600
604800
38400 )
@ IN NS server.arkadias.com.
@ IN A 67.15.221.7
www IN A 67.15.221.7
ftp IN A 67.15.221.7
mail IN A 67.15.221.7
@ IN MX 5 mail
------------------------------------------------------------

This feature worked as expected in Virtualmin PRO EA1 with this DNS record template. This record also fails with the same error as the DNS record above.
------------------------------------------------------------
$ttl 38400
${DOM}. IN SOA ns1.arkadias.com. root.arkadias.com. (
2005123101
10800
3600
604800
38400 )
${DOM}. IN TXT "v=spf1 a mx ~all"
${DOM}. IN NS ns1.arkadias.com.
${DOM}. IN NS ns2.arkadias.com.
${DOM}. IN MX 10 mail.${DOM}.
mail.${DOM}. IN MX 10 mail.${DOM}.
${DOM}. IN A ${IP}
lists.${DOM}. IN A ${IP}
mail.${DOM}. IN A ${IP}
sftp.${DOM}. IN A ${IP}
webmail.${DOM}. IN A ${IP}
www.${DOM}. IN A ${IP}
------------------------------------------------------------

Regards,

-Glen

Status: 
Closed (fixed)