Knowledge Base ISC Main Website Ask a Question/Contact ISC
I get "rndc: connect failed: connection refused" when I try to run rndc.
Author: ISC Support Reference Number: AA-00300 Views: 4813 Created: 2011-05-13 20:55 Last Updated: 2017-01-31 19:02 0 Rating/ Voters

This is usually a configuration error.

First ensure that named is running and no errors are being reported at startup (/var/log/messages or equivalent). Running "named -g <usual arguments>" from a title can help at this point.

Secondly ensure that named is configured to use rndc either by "rndc-confgen -a", rndc-confgen or manually. The Administrators Reference manual has details on how to do this.

Old versions of rndc-confgen used localhost rather than in /etc/rndc.conf for the default server. Update /etc/rndc.conf if necessary so that the default server listed in /etc/rndc.conf matches the addresses used in named.conf. "localhost" has two address ( and ::1).

If you use "rndc-confgen -a" and named is running with -t or -u ensure that /etc/rndc.conf has the correct ownership and that a copy is in the chroot area. You can do this by re-running "rndc-confgen -a" with appropriate -t and -u arguments.

© 2001-2018 Internet Systems Consortium

For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership.

ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.

  • There is no feedback for this article
Quick Jump Menu