OpenBSD BIND

2009-05-13 08:17:28来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


                                                                                                                                1.规范主机名
# cat /etc/myname
ob.atyu.com
2.指定DNS服务器
# cat /etc/resolv.conf
nameserver 10.0.0.200
3.建立bind的配置文件:
# cat /var/named/etc/named.conf
// $OpenBSD: named-simple.conf,v 1.6 2004/08/16 15:48:28 jakob Exp $
//
// Example file for a simple named configuration, processing both
// recursive and authoritative queries using one cache.
// Update this list to include only the networks for which you want
// to execute recursive queries. The default setting allows all hosts
// on any IPv4 networks for which the system has an interface, and
// the IPv6 localhost address.
//
acl clients {
        localnets;
        ::1;
};
options {
        version "";     // remove this to allow version queries
        listen-on    { any; };
#       listen-on-v6 { any; };
        allow-recursion { clients; };
};
logging {
        category lame-servers { null; };
};
// Standard zones
//
zone "." {
        type hint;
        file "standard/root.hint";
};
zone "atyu.com" {        type master;        file "standard/atyu.com";        allow-transfer { localhost; };};
zone "localhost" {
        type master;
        file "standard/localhost";
        allow-transfer { localhost; };
};
zone "127.in-addr.arpa" {
        type master;
        file "standard/loopback";
        allow-transfer { localhost; };
};
zone "0.0.10.in-addr.arpa" {        type master;        file "standard/0.0.10.in-addr";        allow-transfer { localhost; };};
zone "com" {
        type delegation-only;
};
zone "net" {
        type delegation-only;

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:抄“夜猫子”网友的一个make.conf

下一篇:freebsd安装软件的常用方法