syncronizing 2 dns server (windows/linux)

Josh Hyles josh.maillists at gmail.com
Sat Sep 24 01:41:13 UTC 2005


Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I am trying to figure out the best way to sync two server that are of
different platforms. I want to somehow make all the files the exact same an=
d
it would be nice if I didnt have to create the zones on both machines. Is
this possible? I already have it so that I can update ns1 and ns2 will take
the affects, but I want to make a new zone on ns1 and have it create it on
ns2 as well. Also, is there an app that will analyze your zone files to mak=
e
sure the syntax is right? I have the following that I'm trying to figure ou=
t
which one is done correctly.... here is the first which uses an $ORIGIN
tag....

$ORIGIN .
> $TTL 86400 ; 1 day
> haiericemachine.com <http://haiericemachine.com> IN SOA
> ns1.goatinatree.com <http://ns1.goatinatree.com>. root.haiericemachine.co=
m<http://root.haiericemachine.com>.
> (
> 2004170901 ; serial
> 28800 ; refresh (8 hours)
> 7200 ; retry (2 hours)
> 604800 ; expire (1 week)
> 86400 ; minimum (1 day)
> )
> NS ns1.goatinatree.com <http://ns1.goatinatree.com>.
> NS ns2.goatinatree.com <http://ns2.goatinatree.com>.
> A 216.117.131.89 <http://216.117.131.89>
> $ORIGIN haiericemachine.com <http://haiericemachine.com>.
> www A 216.117.131.89 <http://216.117.131.89>



And here is one that doesnt....

@ IN SOA ns1.goatinatree.com <http://ns1.goatinatree.com>.
> root.wisdomofwellnessproject.com <http://root.wisdomofwellnessproject.com=
>.
> (
> 2004050801 ; serial number
> 3600 ; refresh
> 7200 ; retry
> 604800 ; expire
> 86400 ) ; default TTL
>
> ;
> ; Zone NS records
> ;
>
> @ NS ns1.goatinatree.com <http://ns1.goatinatree.com>.
> @ NS ns2.goatinatree.com <http://ns2.goatinatree.com>.
>
> ;
> ; Zone records
> ;
>
> @ A 216.117.131.89 <http://216.117.131.89>
> @ MX 5 mail.wisdomofwellnessproject.com<http://mail.wisdomofwellnessproje=
ct.com>
> .
> ftp A 216.117.131.89 <http://216.117.131.89>
> mail A 216.117.131.89 <http://216.117.131.89>
> www A 216.117.131.89 <http://216.117.131.89>
>
>

Which one of these files is right? they both work, but which is better?

Thanks in advance.




More information about the bind-users mailing list