前提:机器名为bak.5ilinux.com域名为5ilinux.com
1.从安装盘安装rpm-ivhbind-9.2.2-21.i386.rpm
2.增加配置文件
vi/etc/named.conf
##named.conf-configurationforbind
##Generatedautomaticallybyredhat-config-bind,alchemistetal.
#Anychangesnotsupportedbyredhat-config-bindshouldbeput
#in/etc/named.custom
#controls{inet127.0.0.1allow{localhost;}keys{rndckey;};};
include"/etc/rndc.key";
options{
directory"/var/named/";
};
zone"."{
typehint;
file"named.ca";
};
zone"0.0.127.in-addr.arpa"{
typemaster;
file"0.0.127.in-addr.arpa.zone";
};
zone"localhost"{
typemaster;
file"localhost.zone";
};
zone"5ilinux.com"{
typemaster;
file"5ilinux.com.zone";
};
下载named.ca
wgetftp://ftp.rs.internic.net/domain/named.root
下载后改名为named.ca存在/var/named目录下
vi/var/named/localhost.zone
$TTL86400@
[email protected](
1;serial
28800;refresh
7200;retry
604800;expire
86400;ttl
)
INNSlocalhost.
@INA127.0.0.1
vi/var/named/0.0.127.in-addr.arpa.zone
[email protected](
2;serial
28800;refresh
7200;retry
604800;expire
86400;ttl
)
@INNSlocalhost.
1INPTRlocalhost.
1INPTRbak.
vi/var/named/5ilinux.com.zone
[email protected](
3;serial
28800;refresh
7200;retry
604800;expire
86400;ttl
)
INNSbak.wapya.com.
wwwINA210.51.0.124
bakINA210.51.0.124
mailINCNAMEwww
wapINA210.51.0.122
5ilinux.comINMX10www
ok了,就是这些配置文件。为了方便以后查资料,所以把配置过程写下来
/etc/rc.d/iinit.d/namedrestart
重启一下服务就可以用了