Search Again:

Re: Rndc and misc

From: Men & Mice Support
Date: Thursday, October 28, 2004
Time: 11:54:34 am

At 12:12 AM -0700 10/28/04, Scott Haneda wrote:
>In trying to deal with troubleshooting my DNS, I see mention to run rndc,
>which gets me a error when run :rndc status
>rndc: neither /private/etc/rndc.conf nor /private/etc/rndc.key was found
>
>Is there something I have to do to make that command work?

Yes. Mac OS X doesn't come with rndc preconfigured, so the QuickDNS
installer must configure it. However, since QuickDNS Remote doesn't
use the actual rndc command - it has this functionality built in -
there's no need to create the configuration files for the rndc
command. All the configuration is in the named configuration files.

You can correct this so that rndc will work using the following shell commands:

sudo -s
tail -n4 /var/named/conf/user_before > /etc/rndc.key
exit

The reason you can't put 'sudo' on the front of the 'tail' command
is, that doesn't cover the redirect into rndc.key. So you must
actually become root first, and then exit root after.

>I also see mention of many other logging options, like a client.log and well
>as database dumps, how, with qdns installed, can I get this to behave more
>inline with what I am reading about bind 9?

You can edit the logging settings, setting up additional channels
such as a client.log file, in /var/named/conf/logging.

The path of the database dump can be configured in
/var/named/conf/options, but you don't have to configure it to get a
dump. Just use 'rndc dumpdb' and it will create a dump of everything
it has in cache. The default location is /var/named/named_dump.db.
Despite the extension, this a simple text file.

Chris Buxton
Men & Mice - Making DNS Easy
Customer Service and Sales Engineer



Messages In This Thread:



Return to Digital Point Solutions' Home Page