rndc -s

Mark_Andrews at isc.org Mark_Andrews at isc.org
Sun Aug 24 23:24:58 UTC 2003


> hi,
> 
> I wanted to test rndc  to reload the configuration file... my setup is  
> that i have 2 interface  assigned with different ip
> and one of them has master configuration and the other has slave 
> configuration.
> 
> I wanted to relaod the mater file whenever I do some changes to the 
> configration file but it is giving me the error below..
> 
> error message...
> 
> @s#:/export/home/swimmer2/dns/master] rndc -s 194.170.1.12 reload
> 
> rndc: connection to remote host closed
> This may indicate that the remote server is using an older version of
> the command protocol, this host is not authorized to connect,
> or the key is invalid.
> I
> 
> **I have setup two files to make rndc working..   update * master.conf*  
> and other file * rndc.conf*
> 
> 
> my master.conf file
> controls {
>       inet 194.170.1.12 allow { 127.0.0.1; }keys{rndckey;};
> };

	Connections to 194.170.1.12 will never come from 127.0.0.1.
	The kernel will choose 194.170.1.12 as the source address for
	local connections.
 
> key"rndckey"{
>       algorithm "hmac-md5";
>       secret    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
>  };
> 
> my rndc.conf file:
> 
> #start of rndc.conf
> 
> options{
>  default-server 127.0.0.1;
>  default-key "rndckey";
>  };
> 
> server 194.170.1.12 {
>     key "rndckey";
>  };
> 
> #copy the key statement from rndc.key file     
> key"rndckey"{
>       algorithm "hmac-md5";
>       secret    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
>  };
> 
> #End of rndc.conf
> [amani:/export/home/swimmer2/dns/master]
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org


More information about the bind-users mailing list