Prev Index Next

DNSサービスの冗長化

ハードウェア

qjoho18およびハードディスクを使用した

OSインストール

bind の設定

qjoho18の設定

/etc/bind/named.conf.local

include "/etc/bind/zones.hokudai.in-cps";

/etc/bind/zones.hokudai.in-cps

//
// zones.hokudai.in-cps
// CPS intranet in hokudai
//
zone "hokudai.in-cps" {
        type slave;
        file "hokudai.in-cps.zone";
        masters {
          10.0.1.2;
        };
};
zone "0.10.in-addr.arpa" {
        type slave;
        file "10.0.0.rev";
        masters {
          10.0.1.2;
        };
};

/etc/bind/named.conf.options

options {
        directory "/var/cache/bind";
        forwarders {
           133.87.45.70;
           133.87.45.66;
           133.87.1.11;
        };
        auth-nxdomain no;
        empty-zones-enable no;
};

jupiterの設定

/etc/bind/zones.hokudai.in-cps を編集

//
// zones.hokudai.in-cps
// CPS intranet in hokucdai
//
zone "hokudai.in-cps" {
        type master;
        file "hokudai.in-cps.zone";
        notify yes;
        allow-transfer {
          ::1;
          127.0.0.1;
          10.0.16.18;
        };
        allow-update { none; };
};
zone "0.10.in-addr.arpa" {
        type master;
        file "10.0.0.rev";
        notify yes;
        allow-transfer {
          ::1;
          127.0.0.1;
          10.0.16.18;
        };
        allow-update { none; };
};

/var/cache/bind/hokudai.in-cps.zone に追加

ns1                IN        CNAME        jupiter.hokudai.in-cps.
ns2                IN        CNAME        qjoho18.hokudai.in-cps.

確認

クライアントの設定

/etc/resolv.conf

nameserver 行を増やす

search hokudai.in-cps
nameserver 10.0.1.2
nameserver 10.0.16.18

Prev Index Next