Zone transfer changing the zone name

Barry Margolin barmar at genuity.net
Thu Feb 7 19:48:28 UTC 2002


In article <a3uabg$ooo at pub3.rc.vix.com>,
Diego Balgera <diego.balgera at nokia.com> wrote:
>Hi smart guys,
>
>I have the following situation:
>- a name server (let's say ns1) where a zone (Z) is defined as master
>- several name servers (ns2, ns3 for example) where the same zone Z is
>defined as slave depending on ns1.
>Trivial till now.
>
>My (odd) requirement now is to have the zone Z in ns2 with a different
>content than the content of Z in ns3, and of course this master/slave
>solution doesn't help.
>So, can I define two different zones in the master name server ns1 with two
>different names (and contents, Z1 and Z2) that act as master of  zones (Z)
>with the same name in ns2 and ns3? In other words, can I change the name of
>a zone during a zone transfer?
>
>Briefly)
>ns1 - Z1 ---------> ns2 - Z
>ns1 - Z2 ---------> ns3 - Z
>
>Or do you have any idea to deploy the same result?
>
>The network is based on slave name servers bind 8.2.5, while the master is a
>proprietary name server (f-secure Namesurfer 2.2.8).

Configure ns2 and ns3 as masters rather than slaves.  Instead of having
named do zone transfers automatically, run a cron job that does something
like:

dig Z1 axfr @ns1 | grep -v '$ORIGIN' > db.Z
ndc reload Z

-- 
Barry Margolin, barmar at genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list