事前確認事項 †ドメインはcomuro.org 設定箇所 †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;
};
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";
 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 † |