These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Server Template Help - DNS template? on the new forum.
Hi,
I need a hand with server templates and BIND DNS.
I want to make a custom DNS setup, but I am a HUGE newbie and I know that the numbers (1181099966, 10800, 3600, 604800, 38400) before the records mean something.
When you create a template the default is "from default settings".
What are those default settings? How do I get my template to correctly create the numbers?
Anyways, if I am not making sense please let me know.
Really appreciate any help!
Alex
Hey Alex,
<div class='quote'>I know that the numbers (1181099966, 10800, 3600, 604800, 38400) before the records mean something</div>
Those numbers are described here:
http://en.wikipedia.org/wiki/Zone_file
In essence though, the first is a serial number, and the rest are timeouts for this and that (in seconds).
<div class='quote'>What are those default settings? How do I get my template to correctly create the numbers?</div>
The default settings you're referring to are in the main/default template.
So taking a look at the default template, you'll see that big textarea labeled "BIND DNS records for new domains".
Everything listed in there is appended to whatever else Virtualmin intends on adding to the zone file.
And that's where this all gets easy -- Virtualmin takes care of the hard part, by adding in sane defaults for those numbers, keeping track of the serial number, and such.
You can tweak a lot of that by clicking Webmin on the top-left, going into Servers, clicking BIND DNS Server, and poking around in the Module Config area.
In my setup, my default template has a handful of host records in "BIND DNS records for new domains", and all the other templates are simply set to "From default settings".
-Eric
in that module config make sure to set:
Serial number style
Date based (YYYYMMDDnn)
instead of the default.