linux:bind_install
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| linux:bind_install [2022/08/18 15:22] – [Setting-up BIND as Content Server] kimi | linux:bind_install [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 2: | 行 2: | ||
| 最近のトレンドは権威サーバとキャッシュサーバの分離。KVMで2台DNSサーバ立てることにするとそれぞれ単体で設定すればよいので、その方が単純かつセキュア。(まあ、単純なものほどセキュアなものだが)というのはわかっているのだけれど、もうこの歳になると覚えた時のようにやらないとどうもうまくいかない。三子の魂百までなのか雀百まで踊り忘れずなのかはよくわからんが。 | 最近のトレンドは権威サーバとキャッシュサーバの分離。KVMで2台DNSサーバ立てることにするとそれぞれ単体で設定すればよいので、その方が単純かつセキュア。(まあ、単純なものほどセキュアなものだが)というのはわかっているのだけれど、もうこの歳になると覚えた時のようにやらないとどうもうまくいかない。三子の魂百までなのか雀百まで踊り忘れずなのかはよくわからんが。 | ||
| - | 研究室の実際の設定はちょっと違うのだけれど、ここでは | + | 研究室の実際の設定はちょっと違うのだけれど、ここでは以下のような構成で設定する。 |
| - | |ローカルネットワーク| | + | ^ ローカルネットワーク |
| - | |ドメイン名| | + | | ドメイン |
| + | |DNSサーバ| ns1.local | 192.168.10.1| | ||
| ===== BINDのインストール ===== | ===== BINDのインストール ===== | ||
| インストールは'' | インストールは'' | ||
| 行 115: | 行 115: | ||
| ... | ... | ||
| </ | </ | ||
| - | 設定ファイルやZoneファイルを書き換えた後は、 | + | 設定ファイルやZoneファイルを書き換えた後は、(**シリアル増やすの忘れんな!**) |
| <code sh> | <code sh> | ||
| $ systemctl restart named | $ systemctl restart named | ||
| </ | </ | ||
| + | |||
| + | |||
| 行 128: | 行 130: | ||
| * NSD | * NSD | ||
| * Unbound | * Unbound | ||
| - | ===== BINDのインストール ===== | ||
| - | <code sh> | ||
| - | kimi@sstw: | ||
| - | Formatting ' | ||
| - | virt-install \ | ||
| - | --name=sstx \ | ||
| - | --disk=images/ | ||
| - | --vcpus=2 --ram=2048 \ | ||
| - | --graphics vnc, | ||
| - | --cdrom iso/ | ||
| - | |||
| - | kimi@sstw: | ||
| - | WARNING | ||
| - | WARNING | ||
| - | |||
| - | Starting install... | ||
| - | Creating domain... | ||
| - | |||
| - | Domain is still running. Installation may be in progress. | ||
| - | Waiting for the installation to complete. | ||
| - | Domain has shutdown. Continuing. | ||
| - | Domain creation completed. | ||
| - | Restarting guest. | ||
| - | kimi@sstw: | ||
| - | |||
| - | kimi@sstb: | ||
| - | Hit:1 http:// | ||
| - | Hit:2 http:// | ||
| - | Hit:3 http:// | ||
| - | Hit:4 http:// | ||
| - | Reading package lists... Done | ||
| - | Building dependency tree... Done | ||
| - | Reading state information... Done | ||
| - | All packages are up to date. | ||
| - | kimi@sstb: | ||
| - | Reading package lists... Done | ||
| - | Building dependency tree... Done | ||
| - | Reading state information... Done | ||
| - | Calculating upgrade... Done | ||
| - | 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | ||
| - | kimi@sstb: | ||
| - | kimi@sstb: | ||
| - | |||
| - | / | ||
| - | // This is the primary configuration file for the BIND DNS server named. | ||
| - | // | ||
| - | // Please read / | ||
| - | // structure of BIND configuration files in Debian, *BEFORE* you customize | ||
| - | // this configuration file. | ||
| - | // | ||
| - | // If you are just adding zones, please do that in / | ||
| - | |||
| - | include "/ | ||
| - | include "/ | ||
| - | include "/ | ||
| - | vi named.conf | ||
| - | cp: cannot create regular file ' | ||
| - | cp: cannot create regular file ' | ||
| - | cp: cannot create regular file ' | ||
| - | cp: cannot create regular file ' | ||
| - | |||
| - | |||
| - | kimi@sstb:/ | ||
| - | ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === | ||
| - | Authentication is required to restart ' | ||
| - | Authenticating as: Kiminori Kakitani (kimi) | ||
| - | Password: | ||
| - | ==== AUTHENTICATION COMPLETE === | ||
| - | kimi@sstb:/ | ||
| - | |||
| - | |||
| - | </ | ||
linux/bind_install.1660803735.txt.gz · 最終更新: (外部編集)