事前確認事項

ドメインはcomuro.org
マスターDNSサーバーのホスト名は<dnsnb> IPアドレスは192.168.1.100とする
使うドメイン: nerimama.jp/comuro.org

設定箇所


named.conf.options

options {
       directory "/var/cache/bind";
       version "dns server";
       auth-nxdomain no;    # conform to RFC1035
       allow-transfer {
               自分のIP;
               スレイブNSがあればそのIP;
       };
};

acl "SERVERS" {
       127.0.0.1;
       自分のIP;
       スレイブNSがあればそのIP;
};


named.conf

include "/etc/bind/named.conf.options"
 
key "rndc-key-ac" {
 algorithm hmac-md5;
 secret "ごにょごにょ(こんな感じWtGsdf87SQG23=みたいな)";
};
controls {
 inet 127.0.0.1 port 953
  allow { 127.0.0.1;  ;} keys { "rndc-key-ac"; };
};

include "/etc/bind/named.conf.local";


named.conf.local
省略部分は省略*?とまとめてみた

view "internal" {
   match-clients {
    192.168.1.100(自分のIP);
    192.168.1.100(LAN内のIP);
  };
   省略*
  zone "comuro.org" {
    type master;
    file "/etc/bind/db.comuro.org-inside";
  };
  zone "1.168.192.in-addr.arpa" {
    type master;
    file "/etc/bind/db.192.168.1";
  };
};
view "external" {
       match-clients { any; };
       recursion no;
   省略*
       zone "comuro.org" {
               type master;
               file "/etc/bind/db.comuro.org";
               allow-transfer { SERVERS; };
       };
       zone "(自分の固定IPの逆).in-addr.arpa" {
               type master;
               file "/etc/bind/db.(自分の固定IP)";
               allow-transfer { SERVERS; };
       };

};
include "/etc/bind/rndc.key";

db.comuro.org(外向け)

db.comuro.org-inside(内向け)

db.固定IP(外向け)

db.192.168.1(内向け)

確認方法

エラー時には

参考URL


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-03-12 (月) 16:54:34 (197d)