acl local {
	any;
	サーバーのグローバルIPアドレス;
	};
options {
	directory "/etc";
	pid-file "/var/run/named/named.pid";
	version "unknown";
	};
//rndc-keyはサーバーによって異なるので変更が必要
key rndc-key {
	algorithm hmac-md5;
	secret "W1KlP/BiXJt0jRf0FwBLnA==";
	};
controls {
	inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
	};


zone "." {
	type hint;
	//file "/etc/db.cache";
         file "/var/named/named.root";
};


zone "140.43.163.in-addr.arpa" {
	type master;
	file "/var/named/140.43.163.rev";
        allow-transfer{グローバルIPアドレス;
			お名前.comセカンダリネームサーバーのグローバルIPアドレス;
		};
	};

zone "0.0.127.in-addr.arpa" {
	type master;
	file "/var/named/127.0.0.rev";
	};


include "/etc/rndc.key";
//zone名
zone "logw.jp" {
	type master;
	file "/var/named/logw.jp.hosts"; //zone転送ファイルのパス
        allow-transfer{
          サーバーのグローバルIPアドレス;
          お名前.comセカンダリネームサーバーのグローバルIPアドレス; 
         };
allow-update {localhost;};
	};

