If you're getting this error when using the named server on FreeBSD:
failed connecting to 127.0.0.1 rnd load failed: connection refused
Then likely your named.conf file is missing reference to rndc key. To fix this problem, do two things:
1) ln -s /etc/namedb/named.conf /etc/named.conf (Because FBSD looks for /etc/named.conf)
2) Edit your named.conf and add the following line to the top:
Hope this helps someone..
failed connecting to 127.0.0.1 rnd load failed: connection refused
Then likely your named.conf file is missing reference to rndc key. To fix this problem, do two things:
1) ln -s /etc/namedb/named.conf /etc/named.conf (Because FBSD looks for /etc/named.conf)
2) Edit your named.conf and add the following line to the top:
3) Restart your bind server, note use /scripts/restartsrv_bind , do NOT use restartsrv_named as it breaks bind on FBSD.include "/etc/namedb/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; YourDNSIPAddress; } keys { "rndc-key"; };
};
Hope this helps someone..