Stopping domain name service: namedrndc: connect failed: connection refused

Discussion in 'HOWTO-Related Questions' started by Finchwizard, Apr 10, 2006.

  1. Finchwizard

    Finchwizard New Member

    I've just installed the Master DNS.

    I did do what the comments said when I started the install with making the directory /var/lib/named/var/run/bind/run

    The permissions on that directory are right, as well as the "-u bind -t /var/lib/named" in /etc/init.d/bind9

    It was working, I've restarted, double and triple checked everything.

    Can someone help before I throw the thing out the window.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Are you logged in as root, not sudo?
  3. Finchwizard

    Finchwizard New Member

    Yes, I'm using Debian 3.1, not Ubuntu or anything.

    It seems to work, then when I try adding things to the config, it starts doing it again, after removing the lines I just added, and then restarting it again, it gives the same errors.

    It gives the error if I stop or restart, yet it's fine if it just starts.
  4. Finchwizard

    Finchwizard New Member

    After Regenerating the rndc key and changing named.conf to reflect it.

    Also, looking in the /etc/init.d/bind9 script, shouldn't the other values be changed to the right paths?

    Something like that? To say where the PID file is and to recreate the /var/run/bind/run directory again?

    I changed mine and it's seemed to have fixed it too.
    Just wondering if that could be the problem
  5. falko

    falko Super Moderator Howtoforge Staff

    When you edit named.conf, make sure you have a line break at the end, otherwise BIND won't start.
  6. Finchwizard

    Finchwizard New Member

    I did have name breaks, just something was going weird and when I changed the other things in the init script they worked and I'm not having the problem as much.

    Could also mention in the How To to make use of 'named-checkconf' it's handy for identifying those errors someone might have.

Share This Page