connection refused

CHAMPAGNE Eric TPC-SRD eric.champagne at francetelecom.com
Thu Mar 8 10:43:41 UTC 2001


After successfully installing bind 9.1.1rc3 on a Solaris 6 box, i'm having 
trouble reloadind it with rndc.
When i make a ndc reload i get :   rndc: connect: connection refused

# rndc reload
rndc: connect: connection refused

After a truss, i can see there is a problem with a connection on 127.0.0.1 port 
953:

25145:  getsockopt(5, 65535, 8192, 0xEFFFF64C, 0xEFFFF648) = 0
25145:  setsockopt(5, 65535, 8192, 0xEFFFF64C, 4)       = 0
25145:  fcntl(5, F_SETFL, 0x00000082)                   = 0
25145:  connect(5, 0xEFFFF7B8, 16)                      Err#146 ECONNREFUSED
25145:          name = 127.0.0.1/953

With a netstat -an i can't see any TCP listner on port 953.

lsof -P give me :
nscd      2364  root  cwd   VDIR       65,0       1024     132741 /etc/init.d
nscd      2364  root  txt   VREG       65,0      38940       4018 
/usr/sbin/nscd
nscd      2364  root  txt   VREG       65,0       9804      15753 
/usr/lib/nss_dns.so.1
nscd      2364  root  txt   VREG       65,0      30348      15755 
/usr/lib/nss_nis.so.1
nscd      2364  root  txt   VREG       65,0      27000      15754 
/usr/lib/nss_files.so.1
nscd      2364  root  txt   VREG       65,0      16936      74302 
/usr/platform/sun4u/lib/libc_psr.so.1
nscd      2364  root  txt   VREG       65,0      19304      15726 
/usr/lib/libmp.so.2
nscd      2364  root  txt   VREG       65,0      53656      15738 
/usr/lib/libsocket.so.1
nscd      2364  root  txt   VREG       65,0    1014020      15786 
/usr/lib/libc.so.1
nscd      2364  root  txt   VREG       65,0     146080      15740 
/usr/lib/libthread.so.1
nscd      2364  root  txt   VREG       65,0     721924      15798 
/usr/lib/libnsl.so.1
nscd      2364  root  txt   VREG       65,0      25700      15730 
/usr/lib/libpthread.so.1
nscd      2364  root  txt   VREG       65,0      92952      15732 
/usr/lib/libresolv.so.2
nscd      2364  root  txt   VREG       65,0       7752      15717 
/usr/lib/libdoor.so.1
nscd      2364  root  txt   VREG       65,0       4280      15908 
/usr/lib/libdl.so.1
nscd      2364  root  txt   VREG       65,0     166196      15702 
/usr/lib/ld.so.1
nscd      2364  root    0u  VCHR       13,2        0t0     222565 
/devices/pseudo/mm at 0:null
nscd      2364  root    1u  VCHR       13,2        0t0     222565 
/devices/pseudo/mm at 0:null
nscd      2364  root    2u  VCHR       13,2        0t0     222565 
/devices/pseudo/mm at 0:null
nscd      2364  root    3u  DOOR       0,47        0t0         47 (this PID's 
door)
nscd      2364  root    4u  inet 0x60a4c368        0t0        UDP *:35863 
(Idle)

Here are the config files:

# vi /etc/rndc.conf
options {
        default-server localhost;
        default-key    samplekey;
};


server localhost {
        key samplekey;
};


key samplekey {
        algorithm hmac-md5;
        secret "xxxxxxxxxxxx";
};

# vi /var/named/named.conf
//-----------------------------------------------------------------------
// Key statements
//-----------------------------------------------------------------------

key ns1-ns2 {
        algorithm hmac-md5;
        secret "4WNrRN338ug=";
};

options {
        directory "/var/named";
        default-server localhost;
        default-key    samplekey;
};

controls {
        inet 127.0.0.1 allow { any; } keys { samplekey; };
};

server 127.0.0.1
        {
        keys { samplekey ;};
        };

//-----------------------------------------------------------------------
// Global options
//-----------------------------------------------------------------------

options
{
        directory "/var/named";
        listen-on
        {
                127.0.0.1;
        };

        transfer-format many-answers;
        notify yes;
};


HELP ME !!
_______
Eric CHAMPAGNE (Global One GPS/GHA/ENG/MES)
Tél : +33 (0)2 23 28 41 98 Fax: +33 (0)2 23 28 46 39
mailto:eric.champagne at francetelecom.com


More information about the bind-users mailing list