LoginSignup
0
2

More than 1 year has passed since last update.

Ubuntu 22.04 - BIND インストール

Last updated at Posted at 2022-12-02

前提

前回まで WordPress をインストールするために Nginx, MariaDB, PHP をインストールしてきました。やっと WordPress をインストールできるぞー!っといった状況ですが、調べていると先に DNS サーバを用意した方が良さそうなので、ここで DNS サーバを構築します。

環境

Ubuntu 22.04
BIND 9.18.1

設定

新しく仮想マシンを用意します。この辺の記事を参考にするとよいです。

ネットワークに接続できるようになったら、BIND をインストールします。

$ sudo apt install bind9

ステータスを確認します。active (running)になってればOK
確認コマンドでsystemctl status bind9が使えないのでsystemctl status namedを使ってるケースもあったみたいだけど、ここでは使えた。

$ sudo systemctl status bind9

バージョンを確認しておこう。結果からいうと、こっちはbind9 -vが使えなかったw

$ named -v
BIND 9.18.1-1ubuntu1.2-Ubuntu (Stable Release) <id:>

中身はこんな感じ。

$ sudo ls /etc/bind/
bind.keys  db.127  db.empty  named.conf                named.conf.local    rndc.key
db.0       db.255  db.local  named.conf.default-zones  named.conf.options  zones.rfc1918

named.confが BIND 設定ファイル。ここから設定していなかいといけない。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2