DNS Service/etc/rndc. key was found Solution

Source: Internet
Author: User

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 statusrndc: 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 need to manually create key 1 in http://www.linuxidc.com) 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 Ma Y 1/etc/rndc. key [root @ 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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.