スポンサーリンク


Bind9

apt-get update apt-get install bind9

cd /etc/bind/

emacs named.conf

/*
zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};
〜省略〜
zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};
*/

emacs named.conf.local

acl localnet {
  192.168.1.0/24;
  127.0.0.1;
};

zone "localhost" {
  type master;
  file "/etc/bind/local.zone";
};

zone "0.0.127.in-addr-arpa" {
  type master;
  file "/etc/bind/local.rev";
};

zone "spring.ddo.jp" {
  type master;
  file "/etc/bind/spring.ddo.jp.zone";
};
                                                                              
zone "1.168.192.in-addr.arpa" {
  type master;
  file "/etc/bind/spring.ddo.jp.rev";
};

emacs spring.ddo.jp.zone

@       IN      SOA     debian.spring.ddo.jp dns.spring.ddo.jp. (
       2007012800      ; serial
       3600            ; refresh 1hr
       900             ; retry 15min
       604800          ; expire 1w
       86500           ; negative cache TTL 24hr
)
                IN      NS      ***.spring.ddo.jp.
@               IN      A       192.168.1.***
***             IN      A       192.168.1.***
***             IN      A       192.168.1.***
***             IN      A       192.168.1.***

emacs spring.ddo.jp.rev

@       IN      SOA     ***.spring.ddo.jp ***.spring.ddo.jp. (
       2007012801      ; serial
       3600            ; refresh 1hr
       900             ; retry 15min
       604800          ; expire 1w
       86500           ; negative cache TTL 24hr
)
                IN      NS      ***.spring.ddo.jp.
***             IN      PTR     ***.spring.ddo.jp.
***             IN      PTR     ***.spring.ddo.jp.
***             IN      PTR     ***.spring.ddo.jp.

emacs named.conf.options

recursion yes;
        allow-recursion {
           localnet;
        }; 

        allow-transfer {
           none;
        };

        allow-query {
           localnet;
        }; 

        version "DNS Server";

参考:http://wiki.lampetty.net/bind.html


スポンサーリンク


トップ   差分 バックアップ リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2008-10-12 (日) 15:55:23