linux:bind

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:bind [2013/10/10 14:24] – [正引きの設定] ともやんlinux:bind [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー
行 3: 行 3:
 ===== パッケージインストール ===== ===== パッケージインストール =====
 <code> <code>
-$ sudo yum install bind bind-utils+$ sudo dnf install bind bind-utils
 </code> </code>
  
行 16: 行 16:
 パッケージインストール パッケージインストール
 <code> <code>
-$ sudo yum install bind-chroot+$ sudo dnf install bind-chroot
 </code> </code>
 chroot環境を有効化 chroot環境を有効化
行 48: 行 48:
 <       listen-on-v6 port 53 { ::1; }; <       listen-on-v6 port 53 { ::1; };
 --- ---
->       listen-on port 53 { 127.0.0.1; 192.168.1.10; };+>       listen-on port 53 { 127.0.0.1; 192.168.1.12; };
 >       #listen-on-v6 port 53 { ::1; }; >       #listen-on-v6 port 53 { ::1; };
 17c17,23 17c17,23
行 57: 行 57:
 >       forward only; >       forward only;
 >       forwarders { >       forwarders {
->               202.224.32.1+>               129.250.35.250
->               202.224.32.2;+>               8.8.8.8;
 >       }; >       };
 56a63,78 56a63,78
行 87: 行 87:
 </code> </code>
 <code> <code>
-$TTL                    86400 ; 1 day +$TTL            86400 ; 1 day 
-                      IN SOA  blue-dc.fireball.local. root.blue-dc.fireball.local. ( +              IN      SOA      blue-dc.fireball.local. root.blue-dc.fireball.local. ( 
-                                2013101001 ; serial +                        2013101001 ; serial 
-                                10800      ; refresh (3 hours) +                        3H         ; refresh (3 hours) 
-                                3600       ; retry (1 hour) +                        1H         ; retry (1 hour) 
-                                604800     ; expire (1 week) +                        1W         ; expire (1 week) 
-                                3600       ; minimum (1 hour) +                        1H         ; minimum (1 hour) 
-                                +
-                        NS      blue-dc.fireball.local. +                IN      NS       blue-dc.fireball.local. 
-blue-dc                       192.168.1.10 +@               IN      A        192.168.1.80 
-blue-sv                       192.168.1.20 +blue-dc         IN             192.168.1.10 
-blue-sv1                      192.168.1.21 +blue-sv         IN             192.168.1.20 
-blue-sv2                      192.168.1.22+blue-sv1        IN             192.168.1.21 
 +blue-sv2        IN             192.168.1.22 
 +www             IN      A        192.168.1.80
 </code> </code>
-==== 逆引きの設定 ====+==== 逆引きゾーンの設定 ====
 逆引きファイルを新規作成。 逆引きファイルを新規作成。
 <code> <code>
行 108: 行 110:
 <code> <code>
 $TTL            86400 ; 1 day $TTL            86400 ; 1 day
-@               IN      SOA     blue-dc.fireball.local  root.blue-dc.fireball.local. ( +@               IN      SOA      blue-dc.fireball.localroot.blue-dc.fireball.local. ( 
-                                                        2013101001 ; serial +                        2013101001 ; serial 
-                                                        3H         ; refresh +                        3H         ; refresh (3 hours) 
-                                                        1H         ; retry +                        1H         ; retry (1 hour) 
-                                                        1W         ; expire +                        1W         ; expire (1 week) 
-                                                        1H )       ; minimum +                        1H         ; minimum (1 hour) 
-                IN      NS      blue-dc.fireball.local. +) 
-10              IN      PTR     blue-dc.fireball.local. +                IN      NS       blue-dc.fireball.local. 
-20              IN      PTR     blue-sv.fireball.local. +10              IN      PTR      blue-dc.fireball.local. 
-21              IN      PTR     blue-sv1.fireball.local. +20              IN      PTR      blue-sv.fireball.local. 
-22              IN      PTR     blue-sv2.fireball.local.+21              IN      PTR      blue-sv1.fireball.local. 
 +22              IN      PTR      blue-sv2.fireball.local. 
 +80              IN      PTR      www.fireball.local. 
 +</code> 
 +===== 設定のチェック ===== 
 +bind設定ファイルのチェック 
 +<code> 
 +$ sudo named-checkconf /etc/named.conf 
 +</code> 
 + 
 +正引きゾーンのチェック 
 +<code> 
 +$ sudo named-checkzone fireball.local /var/named/fireball.local.zone 
 +zone fireball.local/IN: loaded serial 2013101001 
 +OK 
 +</code> 
 + 
 +逆引きゾーンのチェック 
 +<code> 
 +$ sudo named-checkzone 1.168.192.in-addr.arpa /var/named/1.168.192.in-addr.arpa.rev 
 +zone 1.168.192.in-addr.arpa/IN: loaded serial 2013101001 
 +OK
 </code> </code>
 ===== firewallの設定 ===== ===== firewallの設定 =====
  • linux/bind.1381382653.txt.gz
  • 最終更新: 2019/05/18 02:23
  • (外部編集)