Zone Template
Barry Margolin
barmar at alum.mit.edu
Sat Oct 7 14:38:07 UTC 2006
In article <eg763f$2mfn$1 at sf1.isc.org>,
"Josh Hyles" <josh.maillists at gmail.com> wrote:
> I am running a windows BIND server and am trying to figure out what
> the best template would be for creating new sites. I currently use the
> following...
>
> $ORIGIN .
> $TTL 86400 ; 1 day
> domain_hosted.com IN SOA NS1.domain.com. root.domain_hosted.com. (
> 2006053001 ; serial
> 3600 ; refresh (1 hour)
> 7200 ; retry (2 hours)
> 604800 ; expire (1 week)
> 43200 ; minimum (12 hours)
> )
> NS NS1.domain.com.
> NS NS2.domain.com.
> A 63.247.73.122
> MX 5 mail.domain_hosted.com.
> $ORIGIN domain_hosted.com.
> ftp A 123.456.789.012
> mail A 123.456.789.012
> www A 123.456.789.012
>
> All of the "domain_hosted" entries must be changed to the new domain
> that I am hosting... is there any better to do this?
I'd leave out all the $ORIGIN statements, and use relative names (or @)
for the zone name. Then you don't have to change anything for the new
domain -- the origin defaults to the name from the 'zone' statement in
named.conf.
$TTL 86400 ; 1 day
@ IN SOA NS1.domain.com. root.domain_hosted.com. (
2006053001 ; serial
3600 ; refresh (1 hour)
7200 ; retry (2 hours)
604800 ; expire (1 week)
43200 ; minimum (12 hours)
)
NS NS1.domain.com.
NS NS2.domain.com.
A 63.247.73.122
MX 5 mail
ftp A 123.456.789.012
mail A 123.456.789.012
www A 123.456.789.012
--
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
More information about the bind-users
mailing list