RE: restarting named - rndc: connect failed: operation canceled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Noah wrote:
> redhat-8.0
> named-9.2.3
> 
> 
> I am trying to restart the named service but it hangs when attempting
> to stop the named process.  here is the resulting error.  any clues
> whats going on here? 
> 
> --- snip ---
> 
> # service named restart
> Stopping named: rndc: connect failed: operation canceled
> 
> --- snip ---
> 
> or if I let it sit for two minutes - the other error is:
> 
> --- snip ---
> 
> # service named restart
> Stopping named: rndc: connect failed: timed out
>                                                            [FAILED]
> Starting named:                                            [  OK  ]
> 
> --- snip ---
> 

As you can tell from the above erorr, redhat's init script uses rndc to stop
named. Rndc requires the proper key to be generated (/etc/rndc.key) and
named.conf needs the proper control/acl statement added so that rndc can
actually control named. Example:

Use something like "rndc-confgen -a -b 512" to generate a new key. Further
options can be found using "man rndc-confgen"

In named.conf, add something like...

// Load the key generated by rndc-confgen.
include "/etc/rndc.key";
 
// Only allow localhost access from rndc
controls {
        inet 127.0.0.1 port 953
        allow { 127.0.0.1; } keys { "rndc-key"; };

Note: If your running named in a chroot'd environment, be sure to copy the
key to the PATH_TO_NAMED_CHROOT/etc directory.

Steve Cowles


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux