#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    2
    Rep Power
    0

    bind9 rndc-confgen problem


    I am running FreeBSD 4.8-Release, and built bind9 from the ports, when I go to run rndc-confgen to create the rndc.conf and rndc.key files, rndc-confgen hangs. I ran a ktrace and found this:

    49735 rndc-confgen CALL stat(0xbfbff470,0xbfbff410)
    49735 rndc-confgen NAMI "/usr/share/nls/C/libdst.cat.cat"
    49735 rndc-confgen RET stat -1 errno 2 No such file or directory
    49735 rndc-confgen CALL stat(0xbfbff470,0xbfbff410)
    49735 rndc-confgen NAMI "/usr/share/nls/libdst.cat/C"
    49735 rndc-confgen RET stat -1 errno 2 No such file or directory
    49735 rndc-confgen CALL stat(0xbfbff470,0xbfbff410)
    49735 rndc-confgen NAMI "/usr/local/share/nls/C/libdst.cat.cat"
    49735 rndc-confgen RET stat -1 errno 2 No such file or directory
    49735 rndc-confgen CALL stat(0xbfbff470,0xbfbff410)
    49735 rndc-confgen NAMI "/usr/local/share/nls/libdst.cat/C"
    49735 rndc-confgen RET stat -1 errno 2 No such file or directory
    49735 rndc-confgen CALL stat(0xbfbff410,0xbfbff3b0)
    49735 rndc-confgen NAMI "/usr/share/nls/C/libisc.cat.cat"
    49735 rndc-confgen RET stat -1 errno 2 No such file or directory
    49735 rndc-confgen CALL stat(0xbfbff410,0xbfbff3b0)
    49735 rndc-confgen NAMI "/usr/share/nls/libisc.cat/C"
    49735 rndc-confgen RET stat -1 errno 2 No such file or directory
    49735 rndc-confgen CALL stat(0xbfbff410,0xbfbff3b0)
    49735 rndc-confgen NAMI "/usr/local/share/nls/C/libisc.cat.cat"
    49735 rndc-confgen RET stat -1 errno 2 No such file or directory
    49735 rndc-confgen CALL stat(0xbfbff410,0xbfbff3b0)
    49735 rndc-confgen NAMI "/usr/local/share/nls/libisc.cat/C"
    49735 rndc-confgen RET stat -1 errno 2 No such file or directory
    49735 rndc-confgen CALL break(0x809e000)
    49735 rndc-confgen RET break 0
    49735 rndc-confgen CALL read(0x3,0xbfbff670,0x10)
    49735 rndc-confgen RET read -1 errno 35 Resource temporarily unavailable
    49735 rndc-confgen CALL select(0x4,0xbfbff670,0,0,0)
    49735 rndc-confgen RET select 1
    49735 rndc-confgen CALL read(0x3,0xbfbff670,0x10)
    49735 rndc-confgen GIO fd 3 read 2 bytes
    "\M-'\^O"
    49735 rndc-confgen RET read 2
    49735 rndc-confgen CALL read(0x3,0xbfbff670,0xe)
    49735 rndc-confgen GIO fd 3 read 1 byte
    "\M-="
    49735 rndc-confgen RET read 1
    49735 rndc-confgen CALL read(0x3,0xbfbff670,0xd)
    49735 rndc-confgen RET read -1 errno 35 Resource temporarily unavailable
    49735 rndc-confgen CALL select(0x4,0xbfbff670,0,0,0)
    49735 rndc-confgen PSIG SIGINT SIG_DFL


    Any ideas?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    2
    Rep Power
    0
    I have found the problem, the /dev/random was not seeded.

    Now I am trying to start rndc, but I am getting:

    [bob@giant] /etc/namedb>sudo rndc start
    rndc: connect failed: connection refused

    [bob@giant] /etc/namedb>ps ax | grep named
    49840 ?? Ss 0:00.04 /usr/sbin/named
    [bob@giant] /etc/namedb>named -v
    BIND 9.2.2
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    1
    Rep Power
    0
    Make sure that you have added a line similar to the following to your named.conf:

    controls {
    inet 127.0.0.1 allow { localhost; } keys { /usr/local/etc/rndc.key; };
    };

    bind likes to be anal about that.

IMN logo majestic logo threadwatch logo seochat tools logo