Solaris10/bind - PukiWiki

Solaris10

2008/07/29

Install

pkg-get -i bind
rndc-confgen -a

/etc/opt/csw/named.conf

rndc-confgen -a で作られる /etc/rndc.key を参照.

key RNDC_KEY {
        algorithm hmac-md5;
        secret "==========================================";
};
controls {
        inet 127.0.0.1 allow { localhost; } keys { RNDC_KEY; };
};
acl math-kyushu-u {
        {
                133.5.165.0/24;
                172.24.0.0/16;
        };
};
options {
        directory "/var/opt/csw/named";
        pid-file "named.pid";
        allow-transfer {
                math-kyushu-u;
        };
};
zone "." {
        type hint;
        file "named.root";
};
zone "0.0.127.in-addr.arpa" {
        type master;
        file "localhost.rev";
};
zone "math.kyushu-u.ac.jp" {
        type slave;
        file "bak/math.zone";
        masters {
                172.24.1.14; 172.24.1.15;
        };
};

cd /var/opt/csw/named

  • localhost.rev
    @       IN      SOA     rio.l.math.kyushu-u.ac.jp. ym.rio.l.math.kyushu-u.ac.jp. (
            2
            10800
            3600
            604800
            86400 )
    ;
    0.0.127.in-addr.arpa.       IN     NS      rio.l.math.kyushu-u.ac.jp.
    ;
    1.0.0.127.in-addr.arpa.     IN     PTR     localhost.
  • named.root
    wget ftp://rs.internic.net/domain/named.root
  • etc
    mkdir bak
    chown named *

/etc/resolv.conf

domain math.kyushu-u.ac.jp
nameserver 127.0.0.1
search math.kyushu-u.ac.jp l.math.kyushu-u.ac.jp

Check

  • Version Check
    dig +short chaos version.bind txt
  • Security Check
    dig +short porttest.dns-oarc.net TXT
    Counter: 2480, today: 1, yesterday: 1

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSSPDF
Last-modified: 2008-07-29 (火) 12:29:01 (3890d)