Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Failed to start BIND


    Hello,

    I have an OpenVZ Linux VPS with:

    CentOS Linux 5.3,
    Webmin version 1.490
    BIND DNS Server version 9.3.4

    I cannot start Bind.

    this is the error message:


    Failed to start BIND : Starting named: named:
    could not open pre-chroot entropy source /dev/random:
    file not found [FAILED]


    I do not how I can solve this problem.

    Thanks for your help


    peace5

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,798
    Do you have the file 'random' in '/dev'?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Hello,

    Thanks for your reply. I really need help.

    I have not deleted anything, however I do not have the file 'random' in '/dev'

  4. $spacer_open
    $spacer_close
  5. #4
    I have BIND version 9.3.4, under chroot /var/named/chroot

  6. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,798
    Failed to start BIND : Starting named: named:
    could not open pre-chroot entropy source /dev/random:
    file not found [FAILED]
    Well that is why this error is and bind doesn't start. You need to check your distro and find this file and place it into that directory.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  7. #6
    Man it has been years since I've logged in over here. Mr peace over there sent me a message trying to get me to help him out over here. He found this thread where I helped with a similar issue:
    http://www.linuxforums.org/forum/lin...-deamon-4.html

    Lazydog has properly diagnosed your problem, and the answer to your problem lies in the post that I wrote above. So I'm not sure why you are still having a problem, but I can try to spell things out in a bit more detail for your situation.

    Run these commands on your VPS:
    mkdir /var/named/chroot/dev
    chmod 774 /var/named/chroot/dev
    mknod -m 644 /var/named/chroot/dev/null c 1 3
    mknod -m 644 /var/named/chroot/dev/zero c 1 5
    mknod -m 644 /var/named/chroot/dev/random c 1 8

    The only difference between this and my former post is that "/var/named/chroot" is the location of your bind jail. Try out those commands and restart bind. If you still get that error let us know.

    EDIT: I just realized that you might be saying that you don't have the "/dev/random" file either. You need this "random" file in two locations. If by some weird stroke of bad luck you don't have it in this other location, you can run this command:

    mknod -m 644 /dev/random c 1 8

  8. #7
    Thank you very much ... it is working

    Thanks a lot to SilentRage and Lazydog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •