how to setup custom template?

Hi everybody!
Could anyone give me some help? i want to setup a customized template,but i have no idea where to start from…

tried to figure it out,but i dont get it…can you post a kind of sample code to use for the records setup?

i also tried to understand this link…
http://www.virtualmin.com/documentation/id%2Cserver_settings_and_templates

well,i have a working setup in xampp,and i’d like to set something like this in my template,so when i create a new server to have these options…

$ttl 60
epsilon-computers.net. IN SOA ns1.epsilon-computers.net. webmaster.epsilon-computers.net. (
1055026280
6H
1H
5D
20M )
epsilon-computers.net. IN A 195.97.101.143
www.epsilon-computers.net. IN CNAME epsilon-computers.net.
ns1.epsilon-computers.net. IN A 195.97.101.143
mail.epsilon-computers.net. IN A 195.97.101.143
epsilon-computers.net. 60 IN MX 10 mail.epsilon-computers.net.
ns1.epsilon-computers.net. 60 IN PTR 195.97.101.143
mail.epsilon-computers.net. 60 IN PTR 195.97.101.143
epsilon-computers.net. 60 IN NS ns1.epsilon-computers.net.
epsilon-computers.net. IN PTR 195.97.101.143

is there a way to set my virtualmin to use the records above?

thank you!

A customized template for what exactly? Just the BIND config? You can set that in the Server Template, section BIND DNS Domain, textbox “BIND DNS records for new domains”. If you specify the whole zone file contents there, make sure to set the radio button below to “Use only the records above”.

The Help text for that template page lists some template variables you can use, and a full list is here: http://www.virtualmin.com/documentation/id%2Ctemplate_variable_listing

oh well…as as said,i have the working setup in xampp (i use the bind records above and i copy-paste them in new zones)

what i need is to make a template to add the A and MX records to every new virtual server i create…
because as the default setup creates the records nothing works correctly…

the rocords i need are:

$ttl 60
site.gr. IN SOA ns1.mynameserver.com. webmaster.site.gr. (

ns1.mynameserver.com. IN A my external IP

mail.site.gr. IN A my external IP

mail.site.gr. 60 IN PTR my external IP

and some more…

these records i copy-paste to every new zone,and works fine!

i can not understand exactly how the variables work,so i get many errors…
hope somebody can help…thanks!