DNS service/etc/rndc. keywasfound solution after the dns service is configured in RHEL6, the following problems may occur. rndc cannot find the key, and the named service runs normally. In fact, it can also be used, however, based on the principle that we cannot let go of a problem, we found a solution [root @ server... DNS service/etc/rndc. key was found solution after the dns service is configured in RHEL6, the following problems may occur. rndc cannot find the key, and the named service runs normally. In fact, it can also be used, however, based on the principle that one problem cannot be spared, the solution [root @ server named] #/etc/init. d/named statusrndc: neither/etc/rndc. conf nor/etc/rndc. key was foundnamed (pid 4086) is running... [root @ server named] # rndc st Atusrndc: neither/etc/rndc. conf nor/etc/rndc. key was found prompt no rndc. the main reason is that there is no caching-named package on RHEL6, and the key is included in el5. So we http://www.linuxidc.com To manually create key 1) create key [root @ server named] # rndc-confgen-r/dev/urandom-awrote key file "/etc/rndc. key "2) change permission [root @ server named] # rndc statusrndc: connect failed: 127.0.0.1 #953: connection refused [root @ server named] # cat/etc/rndc. key "rndc-key" {algorithm HMAC-MD5; secret "MEARtiTMJzFfRwBKlY5lpQ =" ;}; [root @ server named] # ls-l/etc/rndc. key-rw ------- 1 root 77 May 1/etc/rndc. key [ro Ot @ server named] # chown root: named/etc/rndc. key [root @ server named] # chmod 644/etc/rndc. key [root @ server named] # rndc statusrndc: connect failed: 127.0.0.1 #953: connection refused restart the named service! 3) verify [root @ server named] #/etc/init. d/named restartStopping named :. [OK] Starting named: [OK] [root @ server named] #/etc/init. d/named statusversion: 9.7.3-P3-RedHat-9.7.3-8.P3.el6CPUs found: 1 worker threads: 1 number of zones: 21 debug level: 0 xfers running: 0 xfers deferred: 0soa queries in progress: 0 query logging is OFFrecursive clients: 0/0/1000tcp clients: 0/100 server is up and runningnamed (pid 4224) is running... [root @ server named] # rndc statusversion: 9.7.3-P3-RedHat-9.7.3-8.P3.el6CPUs found: 1 worker threads: 1 number of zones: 21 debug level: 0 xfers running: 0 xfers deferred: 0soa queries in progress: 0 query logging is OFFrecursive clients: 0/0/1000tcp clients: 0/100 server is up and running
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.