[i=s] 本帖最后由 arlysolm 于 2011-8-16 14:08 编辑 [/i]
[root@RHEL5 ~]# service named restart
停止 named: [失败]
启动 named:
named配置错误::
zone michael.com/IN: loaded serial 2009021100
dns_master_load: 58.168.192.in-addr.arpa.zone:12: unexpected end of line
dns_master_load: 58.168.192.in-addr.arpa.zone:11: unexpected end of input
58.168.192.in-addr.arpa.zone: file does not end with newline
zone 58.168.192.in-addr.arpa/IN: loading master file 58.168.192.in-addr.arpa.zone: unexpected end of input
_default/58.168.192.in-addr.arpa/IN: unexpected end of input
[失败]
etc/named.conf内容如下:
options {
directory "/var/named";
recursion yes;
};
zone "." IN {
type hint;
file "named.root";
};
zone "michael.com" IN{
type master;
file "michael.com.zone";
};
zone "58.168.192.in-addr.arpa" IN {
type master;
file "58.168.192.in-addr.arpa.zone";
};
正向解析/var/named/michael.com.zone内容如下
$TTL 86400
@ IN SOA ns1.michael.com. root (
2009021100 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS ns1.michael.com.
a.michael.com. IN NS ns1.a.michael.com.
ns1.michael.com. IN A 192.168.58.128
ns1.a.michael.com. IN A 192.168.58.129
反向解析/var/named/58.168.192.in-addr.arpa.zone内容如下:
$TTL 86400
@ IN SOA 128.58.168.192.in-addr.arpa. root (
2009021100 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS ns1.michael.com.
128 IN PTR ns1.michael.com.
129 IN PTR ns1.a.michael.com.
~
在线等,很急,这么简单的东西都难到了,郁闷。。。
大虾们,帮个忙,QQQ
另外,子域的DNS服务器ns1.a.michael.com,服务也启动不了,是不是配置文件有同样的错误??????
byaq123 于 2011-08-18 14:13:49发表:
哈哈,还有我的信息,有意思。但是抱歉这个问题我不会解决
age 于 2011-08-18 11:01:06发表:
看提示好像是 /var/named/58.168.192.in-addr.arpa.zone 最后一行有误
是vi残留的, 还是你不小心输上去的?那个