QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 584|回复: 1

这个是我配置的DNS服务器出错了 ,专家们帮我看看,谢了

[复制链接]
发表于 2004-4-5 19:16:36 | 显示全部楼层 |阅读模式
这个是我配置的DNS服务器出错了 ,专家们帮我看看,谢了
我是用在机房的,局域网网段192.168.0.0/24,外部网卡地址是10.56.21.177
DNS是10.56.20.12 内网DNS服务器地址是192.168.0.2
局域网中我的域名是langzi.com,主机名redhat
我的 配置是这样的,我把所有的文件和错误信息写出来
1.resolv.conf
----------------------------------------------------------------------------
nameserver 192.168.0.2
domain langzi.com
search langzi.com
-----------------------------------------------------------------------------
2.hosts
-----------------------------------------------------------------------------
192.168.0.2 redhat.langzi.com redhat
------------------------------------------------------------------------------
3.host.conf
-----------------------------------------------------------------------------
order bind hosts
------------------------------------------------------------------------------
4.name.conf
-----------------------------------------------------------------------------
options {
directory "/var/named";
forwarders{10.56.20.12;};
};


zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "0.0.127.zone";
allow-update { none; };
};
zone "lagnzi.com" IN {
type master;
file "langzi.com.zone";
allow-update { none;};
};
zone "0.168.192.in-addr.arpa" IN{
type master;
file "192.168.0.2.zone";
allow-update { none;};
};

-------------------------------------------------------------------------------
5.0.0.127.zone
--------------------------------------------------------------------------------

$TTL 86400
@ IN SOA localhost. root.lcoalhost. (
2002120601 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)


@ IN NS localhost.

1 IN PTR localhost.
------------------------------------------------------------------------------------
6.localhost.zone
------------------------------------------------------------------------------------
$TTL 86400
$ORIGIN localhost.
@ IN SOA localhost. root.localhost. (
2002120601 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)


@ IN NS localhost.


localhost. IN A 127.0.0.1
-------------------------------------------------------------------------------
7.192.168.0.2.zone
--------------------------------------------------------------------------------

$TTL 86400
@ IN SOA redhat.langzi.com. root.redhat.langzi.com. (
2002120601
28800
7200
604800
86400 )



@ IN NS redhat.langzi.com.
2 IN PTR redhat.langzi.com.
---------------------------------------------------------------------------------
8.langzi.com.zone
--------------------------------------------------------------------------------

  $TTL 86400
  @ IN SOA redhat.langzi.com. langzi.com. (
    2002103000 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
  @ IN NS redhat.langzi.com.
  
  redhat IN A 192.168.0.2
---------------------------------------------------------------------------------

message 信息
------------------------------------------------------------------------------------
Apr 2 12:01:48 redhat named[2738]: starting BIND 9.2.1 -u named
Apr 2 12:01:48 redhat named[2738]: using 1 CPU
Apr 2 12:01:48 redhat named[2738]: loading configuration from '/etc/named.conf'
Apr 2 12:01:48 redhat 4月 2 12:01:48 named: named startup succeeded
Apr 2 12:01:48 redhat named[2738]: no IPv6 interfaces found
Apr 2 12:01:48 redhat named[2738]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 2 12:01:48 redhat named[2738]: listening on IPv4 interface eth0, 192.168.0.2#53
Apr 2 12:01:48 redhat named[2738]: listening on IPv4 interface eth1, 10.56.21.178#53
Apr 2 12:01:48 redhat named[2738]: command channel listening on 127.0.0.1#953
Apr 2 12:01:49 redhat named[2738]: zone 0.0.127.in-addr.arpa/IN: loaded serial 2002120601
Apr 2 12:01:49 redhat named[2738]: dns_master_load: 192.168.0.2.zone:3: unexpected end of line
Apr 2 12:01:49 redhat named[2738]: dns_master_load: 192.168.0.2.zone:2: unexpected end of input
Apr 2 12:01:49 redhat named[2738]: zone 0.168.192.in-addr.arpa/IN: loading master file 192.168.0.2.zone: unexpected end of input
Apr 2 12:01:49 redhat named[2738]: dns_master_load: langzi.com.zone:3: unexpected end of line
Apr 2 12:01:49 redhat named[2738]: dns_master_load: langzi.com.zone:2: unexpected end of input
Apr 2 12:01:49 redhat named[2738]: zone lagnzi.com/IN: loading master file langzi.com.zone: unexpected end of input
Apr 2 12:01:49 redhat named[2738]: zone localhost/IN: loaded serial 2002120601
Apr 2 12:01:49 redhat named[2738]: running
------------------------------------------------------------------------------
发表于 2004-4-5 19:37:34 | 显示全部楼层
你直接用redhat-config-bind-gui配置

不单快,而且不容易出错!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-8 23:42 , Processed in 0.045323 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表