bind中rndc配置好之后,开启named的时候提示unkown option default-key/server/port 解决办法
2010-07-07 10:45
585 查看
I had the same problem on a Debian server this week. As you probably noticed when Googling, there are a lot of different things that could cause this problem.
The first thing to check is whether or not named is listening on the port that rndc uses to talk to it: tcp 953
netstat -paln | grep 953
should return a line showing named is listening.
The problem on my DNS server was just that: Nothing was listening on port 953. In /var/log/daemon, I was seeing:
named[7030]: couldn't add command channel 127.0.0.1#953: file not found
What worked for me was to copy the key "rndc-key" {...} clause from rndc.conf and paste it into a file called /etc/bind/rndc.key, rather than placing it directly in named.conf.
rndc.key is read by named, and rndc.conf is read by rndc.
The first thing to check is whether or not named is listening on the port that rndc uses to talk to it: tcp 953
netstat -paln | grep 953
should return a line showing named is listening.
The problem on my DNS server was just that: Nothing was listening on port 953. In /var/log/daemon, I was seeing:
named[7030]: couldn't add command channel 127.0.0.1#953: file not found
What worked for me was to copy the key "rndc-key" {...} clause from rndc.conf and paste it into a file called /etc/bind/rndc.key, rather than placing it directly in named.conf.
rndc.key is read by named, and rndc.conf is read by rndc.
相关文章推荐
- vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- mysql导出表到CSV文件方法及提示错误[Err] 1290 - The MySQL server is running with the --secure-file-priv option解决办法
- IIS7.0 调试ASP程序时候,程序有错误只提示"An error occurred on the server when processing the URL.Please contact the system administrator",看不到详细的提示的解决办法
- Java接入微信的时候提示配置失败解决办法
- configure 配置 extundelete-0.2.0的时候发现提示 没有找到 ext2fs 库的解决办法
- Mac上csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option解决办法
- vscode的vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- 安装MS SQL Server 2008 提示“性能计数器注册表配置单元一致性”失败的解决办法
- vetur插件提示 'v-for' directives require 'v-bind:key' directives.错误的解决办法
- vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- git配置的时候出现connect to host github.com port 22 bad file number解决办法
- ssh私钥登陆提示Server refused our key问的解决办法
- 开启redis-server提示 # Creating Server TCP listening socket *:6379: bind: Address already in use--解决方法
- 解决MyEclipse6.5联网编辑JSP页面出现提示信息的时候的死机、假死等问题的办法
- 在properties文件中配置好数据库信息后,如果现实“…is not allowed to connect to this MySQL server”解决办法
- IIS7部署项目时提示:"错误消息 401.2。: 未经授权: 服务器配置导致登录失败。"的解决办法
- WIN10重装到WIN7之后系统提示“bootmgr is missing ”解决办法
- U盘安装Ubuntu14.04 server版 提示无法挂载cd-rom数据的解决办法
- linux下启动tomcat的时候提示java.net.UnknownHostException的解决办法
- kies进入APPS的时候,提示:【远程服务器返回错误:(502)错误的网关】解决办法