rndc: connection issue (RESOLVED)

  • After small experiments with dns caching daemons I back to bind9 and found out that rndc cannot connect to it.

    rndc status
    rndc: connection to remote host closed
    This may indicate that
    * the remote server is using an older version of the command protocol,
    * this host is not authorized to connect,
    * the clocks are not synchronized, or
    * the key is invalid
    

    Checked that /etc/rndc.conf and /etc/bind/rndc.key matches. Rebooted bind but met the same problem.

    After some investigation i found that port lwresd listening on 953 port.

        netstat -atpn | grep -E ":953|:53"
        pkill named
        pkill lwresd
        /etc/init.d/bind9 start

    I hope this help You :)