急!使用nsupdate更新,服务器返回失败,求指导
本帖最后由 lj20040431 于 2012-08-06 10:45:49 编辑 我在公司内网的服务器上安装DNS软件:bind-9.3.4-1.23, 操作系统为SuSE10
> server 127.0.0.1
> zone hello.com.cn
> update add test.hello.com.cn 60 IN A 192.7.130.179
> show
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 0
;; flags: ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; UPDATE SECTION:
test.hello.com.cn. 60 IN A 192.7.130.179
> send
Sending update to 127.0.0.1#53
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 32175
;; flags: ; ZONE: 1, PREREQ: 0, UPDATE: 1, ADDITIONAL: 0
;; ZONE SECTION:
;hello.com.cn. IN SOA
;; UPDATE SECTION:
test.hello.com.cn. 60 IN A 192.7.130.179
Reply from update query:
;; ->>HEADER<<- opcode: UPDATE, status: SERVFAIL, id: 32175
;; flags: qr ra ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
我的named.conf(只贴zone)zone "hello.com.cn" in {
type master;
file "hello.com.cn.zone";
allow-update {127.0.0.1;};
allow-transfer {none;127.0.0.1;};
};
我的zone文件
IPC209:/var/lib/named # cat hello.com.cn.zone
$TTL 1W
@ IN SOA @ root (
42 ; serial (d. adams)
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum
@ IN NS www.hello.com.cn.
www IN A 192.7.205.25
oa IN CNAME www
bbs IN CNAME www
dns IN A 192.7.205.25
ipc IN A 192.7.130.179
[解决办法]
你把SElinux关闭试试,输入命令:setenforce 0