快捷搜索:   nginx

RHEL5下搭建DNS服务器(2)

[root@localhost ~]# rpm -ivh /mnt/Server/bind-9.3.3-7.el5.i386.rpm
warning: /mnt/Server/bind-9.3.3-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:bind                   ########################################### [100%]

[root@localhost ~]# rpm -ql bind |grep /etc
/etc/dbus-1/system.d/named.conf
/etc/logrotate.d/named
/etc/rc.d/init.d/named
/etc/sysconfig/named
/usr/share/doc/bind-9.3.3/sample/etc
/usr/share/doc/bind-9.3.3/sample/etc/named.conf
/usr/share/doc/bind-9.3.3/sample/etc/named.rfc1912.zones
/usr/share/doc/bind-9.3.3/sample/etc/named.root.hints
/usr/share/doc/bind-9.3.3/sample/etc/rndc.conf

[root@localhost ~]# mv /usr/share/doc/bind-9.3.3/sample/etc/named.conf /etc/named.conf

[root@localhost ~]# ls /var/named
data slaves
[root@localhost ~]# ls /var/named/slaves/
[root@localhost ~]#

[root@localhost ~]# vi /etc/named.conf

options{
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
};
zone    "yang.com" IN {
        type    slave;
        file    "slaves/yang.com.zone";
        masters {192.168.0.20;};
};
zone    "0.168.192.in-addr.arpa" IN {
        type    slave;
        file    "slaves/192.168.0.rev";
        masters {192.168.0.20;};
};

[root@localhost ~]# service named start
Starting named:                                            [ OK ]

[root@localhost ~]# ls /var/named/slaves/
yang.com.zone
顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论