rndc: connect failed: network unreachable on Bind 9.2.1 Solaris 8

Kevin Darcy kcd at daimlerchrysler.com
Wed Aug 21 21:36:27 UTC 2002


srakesh28 at hotmail.com wrote:

> Hi,
>
> I have following in my /etc/named.conf
> key "rndc-key" {
>        algorithm hmac-md5;
>        secret "N2r3xOpcbbvf+/6lGcuswA==";
>  };
> controls {
>        inet 127.0.0.1 port 953
>                allow { 127.0.0.1; } keys { "rndc-key"; };
>  };
> ===========
> on /etc/rndc.conf
> # Start of rndc.conf
> key "rndc-key" {
>         algorithm hmac-md5;
>         secret "N2r3xOpcbbvf+/6lGcuswA==";
> };
>
> options {
>         default-key "rndc-key";
>         default-server 127.0.0.1;
>         default-port 953;
> };
> # End of rndc.conf
>
> ================
> on /etc/rndc.key
>
> key "rndc-key" {
>        algorithm hmac-md5;
>        secret "N2r3xOpcbbvf+/6lGcuswA==";
> };
>
> ===
> Named is starting properly, but when using rndc to do the reload or
> get the stats I get an error
>
> rndc stats
> rndc: connect failed: network unreachable
>
> I am sure port 953 is available
> telnet localhost 953
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
>
> I tried looking at the FAQ could not find anything
>
> Can any one please help..to reslove this ?
>
> I  also used the full command like
>
> rndc -c /etc/rndc.conf -k /etc/rndc.key -s localhost -p 953 -V stats
> create memory context
> create socket manager
> create task manager
> create task
> create logging context
> setting log tag
> creating log channel
> enabling log channel
> create parser
> get default key
> get config key list
> decode base64 secret
> stats
> post event
> using server localhost (::1#953)
> create socket
> connect
> rndc: connect failed: network unreachable

I was getting the same thing. That "::1" looked suspicious to me, to
I tried it without the "-s localhost" and it works fine.


- Kevin




More information about the bind-users mailing list