bind9我怎么都搞不定,哪里有bind的傻瓜教程?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
one_dust
帖子: 77
注册时间: 2005-07-19 19:13

bind9我怎么都搞不定,哪里有bind的傻瓜教程?

#1

帖子 one_dust » 2006-08-01 10:56

我不是系统管理员,我也不想做系统管理员,但是现在的问题是我要在ubuntu server版上面配置一个域名服务系统,在网上看了几天,看的头都大,有没有一份傻瓜指南,别给我搅那么多概念,我现在就想猪八戒吃人参果,不管过程,只管结果,能用就好了。。。

看的网上很多指南都说要启动named服务,但是在ubuntu下面只有bind9服务,在/etc/init.d下面就没有named。。。
上次由 one_dust 在 2006-08-01 11:20,总共编辑 1 次。
one_dust
帖子: 77
注册时间: 2005-07-19 19:13

#2

帖子 one_dust » 2006-08-01 11:15

我想在公司内部配置一个局域网的域名系统,域名就假定为hengpeng.com。现在我定义三台机器:
192.168.0.90 / 一台window2000的服务器,上面装了虚拟机vmware5 workstation
192.168.0.41 / intranet.hengpeng.com / Ubuntu6.0.6,就装在192.168.0.90的虚拟机里面
192.168.0.40 / ramonli.hengpeng.com /我自己的机器,window xp
在这个文档中,我只配置40和41的域名,我是这么做的:

----------
1。安装bind
----------
* sudo apt-get install bind9
* sudo apt-get install dnsutils

----------
2。配置/etc/bind/named.conf.local
----------
下面是完整的文件内容:
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

// +-------------------------------+
// | Added by Ramon.Li@2006/08/01 |
// +-------------------------------+
zone "0.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/db.0.168.192";
};

zone "hengpeng.com" IN {
type master;
file "db.hengpeng.com";
};


----------
3。配置/etc/bind/db.0.168.192
----------
下面是完整的文件内容:
$TTL 86400
@ IN SOA intranet.hengpeng.com. root.intranet.hengpeng.com. (
2001111601 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

@ IN NS intranet.hengpeng.com.


41 IN PTR intranet.hengpeng.com.
40 IN PTR ramonli.hengpeng.com.


----------
4。配置/etc/bind/db.hengpeng.com
----------
下面是文件的完整内容:
$TTL 86400
RIGIN hengpeng.com.

@ IN SOA intranet.hengpeng.com. root.intranet.hengpeng.com. (
2001111601 28800 14400 3600000 86400 )

IN NS intranet.hengpeng.com.
IN NS ramonli.hengpeng.com.

;; -- default address
@ IN A 192.168.0.41

intranet IN A 192.168.0.41
ramonli IN A 192.168.0.40


----------
5。重启bind9
----------
* cd /etc/init.d
* ./bind9 restart
* vi /var/log/message 没看到什么东西:(

----------
6。测试
----------
在192.168.0.40,我自己的机器上面添加192.168.0.41为可选域名服务器(首选是202.96.134.133),然后,
* ping intranet.hengpeng.com

Pinging park.kingnic.com [70.86.251.92] with 32 bytes of data:

Reply from 70.86.251.92: bytes=32 time=218ms TTL=49
Reply from 70.86.251.92: bytes=32 time=214ms TTL=50

各位帮我看看,哪里的问题? 我对bind9也不怎么了解, 对DNS也不怎么了解, 不知我有没救!
回复