Template Domain DNS BIND

5 posts / 0 new
Last post
#1 Tue, 11/24/2009 - 05:20
anouar

Template Domain DNS BIND

hi,

can any one tell me how can i edit the current template for DOMAIN DNS BIND, when the serial number must be incremented after each change.

thank's.

Anouar

Tue, 11/24/2009 - 08:54
andreychek

Howdy,

Virtualmin actually handles changing the serial number for you, so you don't actually need to change that part yourself.

-Eric

Thu, 11/26/2009 - 09:05
anouar

hi man, i wanna do something like that:

$ttl 38400 @ IN SOA yyy.xxxx.net. webmaster.${DOM}. ( YYYYDDMM00 ; it's the serial that i wanna be incremented 10800 3600 604800 38400 ) @ IN NS yyy.xxxx.net. ${DOM}. IN A ${IP} www.${DOM}. IN A ${IP} ftp.${DOM}. IN A ${IP} mail.${DOM}. IN A ${IP} pop.${DOM}. IN A ${IP} smtp.${DOM}. IN A ${IP} ${DOM}. IN MX 5 mail.${DOM}.

when YYYYDDMM00 : must be incremented after each i change or i create a virtual-server.

Thu, 11/26/2009 - 09:42
andreychek

Yup, that's all part of what Virtualmin would do automatically for you.

If you'd like to tweak the specifics of how that works, you can change what DNS records get setup in the Virtualmin templates -- in System Settings -> Server Templates -> Default -> BIND DNS Domain.

Also, you can define how exactly the serial number is handled by going into Webmin -> Servers -> BIND DNS Server -> Module Config -> Zone File Options.

But again, anytime you use Virtualmin to modify a DNS record, it already will increment the serial number for you.

-Eric

Thu, 11/26/2009 - 10:09
anouar

Hi man thank's for ur quick answer, so if i edit the default DOMAIN DNS BIND to :

$ttl 38400 @ IN SOA yyy.xxxx.net. webmaster.${DOM}. ( 1235451209 ; it's the serial that i wanna be incremented 10800 3600 604800 38400 ) @ IN NS yyy.xxxx.net. ${DOM}. IN A ${IP} www.${DOM}. IN A ${IP} ftp.${DOM}. IN A ${IP} mail.${DOM}. IN A ${IP} pop.${DOM}. IN A ${IP} smtp.${DOM}. IN A ${IP} ${DOM}. IN MX 5 mail.${DOM}.

and also i edit my zone file option to: time-based (AAAAMMJJnn)

but there's another question: why after editing that, i try to add a sub-server just for test, and each time i have the same serial for each sub-server created.

i hope that u understand me.

Topic locked