named.conf ??

Joseph S D Yao jsdy at cospo.osis.gov
Thu Jul 20 23:32:37 UTC 2000


On Mon, Jul 17, 2000 at 06:36:40PM +0200, Lise Marie Jensen wrote:
> Please help set this up correct
> 
> i need ns2 to get data from ns1..
> 
> Is this the correct way to set up my named.conf
> 
> ns1 = 123.123.123.1
> 
> ns2 = 123.123.123.2
> _________________________________________________
> _________________________________________________
> server = ns1 = 123.123.123.1
> 
> zone "netby.dk"{
>         type master;
>         allow-update { 123.123.123.2;};
>         allow-transfer { 123.123.123.2;};
>         file "dk/db.net-mailzdk";
> };
> 
> _________________________________________________
> _________________________________________________
> server = ns2 = 123.123.123.2
> 
> zone "netby.dk" {
>         type slave;
>         allow-update { 123.123.123.1;};
>         allow-transfer { 123.123.123.1;};
>         masters { 123.123.123.1;};
>         file "dk/db.netbydk";
> };
> 
> 
> _________________________________________________
> _________________________________________________
> 
> and then run
> $ ndc reload
> 
> is this the correct way to do  it  ???
> 
> Regards Gilbert

Both "allow-update{}"s are superfluous, in that they have nothing to do
with zone transfers.  Did you have any reason to think that they did?
If the documentation is in error, it should be fixed.

The allow-transfer{} in the slave is superfluous.  Data transfer will
never occur in that direction.

This should work, except for the first time the zone is introduced.
The first time, you need to restart the name server.

-- 
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support					EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.



More information about the bind-users mailing list