DNS服務/etc/rndc.key was found解決辦法

來源:互聯網
上載者:User

DNS服務/etc/rndc.key was found解決辦法 RHEL6配置好dns服務之後,會出現如下問題,rndc無法找到key,named服務跑的是正常的,其實本也可以用,但是本著不能放過一個問題的原則,找到瞭解決辦法 [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 提示沒有rndc.key,主要原因還是在RHEL6上沒有caching-named這個包了,EL5上是把key包含在裡面的。所以我們http://www.linuxidc.com要手動建立key 1)建立key[root@server named]# rndc-confgen -r /dev/urandom -awrote key file "/etc/rndc.key"2)更改許可權[root@server named]# rndc statusrndc: connect failed: 127.0.0.1#953: connection refused [root@server named]# cat /etc/rndc.key key "rndc-key" {    algorithm hmac-md5;    secret "MEARtiTMJzFfRwBKlY5lpQ==";}; [root@server named]# ls -l /etc/rndc.key -rw------- 1 root root 77 May  1 06:57 /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 重啟named服務!3)驗證[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: 1worker threads: 1number of zones: 21debug level: 0xfers running: 0xfers deferred: 0soa queries in progress: 0query logging is OFFrecursive clients: 0/0/1000tcp clients: 0/100server 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: 1worker threads: 1number of zones: 21debug level: 0xfers running: 0xfers deferred: 0soa queries in progress: 0query logging is OFFrecursive clients: 0/0/1000tcp clients: 0/100server is up and running

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.