bind replication
Anand Buddhdev
anandb at ripe.net
Fri Dec 31 10:15:56 UTC 2010
On 31/12/2010 10:58, Nuno Paquete wrote:
> No dia 31 de Dez de 2010, às 08:18, "pyh at mail.nsbeta.info" <pyh at mail.nsbeta.info> escreveu:
>
>> Anand Buddhdev writes:
>>> On 31/12/2010 05:33, pyh at mail.nsbeta.info wrote:
>>>> Hi,
>>>> Is it a right way to run rsync for bind's zone files replication?
>>>> If we have dozons of zones, each zone has more than one view, under this
>>>> case setup the master/slave with standard zone-traff is the hard way IMO.
>>>> Thanks.
>>> Yes, that's just fine. You don't have to use zone transfers.
>>
>> Thanks. But I have another question,
>> how would bind know the zone files were changed before it reload zones?
>> Regards.
>
> I think you have to restart bind. That's why I believe it's better to use zone transfers because it's automatic.
You don't have to _restart_ BIND, you have to _reload_ it. Otherwise
BIND can't know that the zone file on disk has changed. You'd do
something like:
rsync source:/some/zone dest:/bind/dir/zone && ssh dest 'rndc reload zone'
--
Anand
More information about the bind-users
mailing list