DNS

BIND 9.5

#安装比较简单,按照BIND的提醒禁用openssl版本检查选项

#./configure --disable-openssl-version-check
#make && make install


#配置BIND,先复制一个标准配置文件到/etc目录下
#cp bin/tests/named.conf /etc/named.conf

#options修改如下,社内服务器解析用,所以配置的比较简单
#cat named.conf
options {

        version "Yepn BIND";

        directory "/var/named";

        allow-query {
                127.0.0.1;
                172.16.0.0/12;
                10.100.0.0/16;
        };

        allow-transfer {
                127.0.0.1;
                172.16.0.0/12;
        };
};

#生成rndc key用来控制BIND服务

#rndc-confgen > rndc.conf
#tail -10 rndc.conf | head -9 | sed s/#\ //g >> named.conf

在从DNS服务器上named.conf修改如下

zone "yepn.net" in {
        type slave;
        file "pz/yepn.net";
        masters { 172.30.4.4; };
};
/var/lib/openshift/bccd8eac1968476490eaee9ced33c7bf/app-root/runtime/repo/php/data/pages/dns.txt · 最后更改: 2012/09/07 09:21 (外部编辑)
到顶部
CC Attribution-Noncommercial-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0