ネットワークは難物である。理解するにはいろいろなアプローチがある。自分で試すというのはその一つだ。 今回は DNS を理解するために、DNS の実装の一つ、bind をインストールし、実験することにした。
私は Windows 10 に Ubuntu を入れている。この Ubuntu に bind9 をインストールした。
$ sudo apt-get install bind9 Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libllvm5.0 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed: bind9utils libirs141 Suggested packages: bind9-doc The following NEW packages will be installed: bind9 bind9utils libirs141 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 592 kB of archives. After this operation, 2,957 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 libirs141 amd64 1:9.10.3.dfsg.P4-8ubuntu1.11 [18.0 kB] Get:2 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 bind9utils amd64 1:9.10.3.dfsg.P4-8ubuntu1.11 [201 kB] Get:3 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 bind9 amd64 1:9.10.3.dfsg.P4-8ubuntu1.11 [373 kB] Fetched 592 kB in 10s (54.1 kB/s) Preconfiguring packages ... Selecting previously unselected package libirs141:amd64. (Reading database ... 55530 files and directories currently installed.) Preparing to unpack .../libirs141_1%3a9.10.3.dfsg.P4-8ubuntu1.11_amd64.deb ... Unpacking libirs141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.11) ... Selecting previously unselected package bind9utils. Preparing to unpack .../bind9utils_1%3a9.10.3.dfsg.P4-8ubuntu1.11_amd64.deb ... Unpacking bind9utils (1:9.10.3.dfsg.P4-8ubuntu1.11) ... Selecting previously unselected package bind9. Preparing to unpack .../bind9_1%3a9.10.3.dfsg.P4-8ubuntu1.11_amd64.deb ... Unpacking bind9 (1:9.10.3.dfsg.P4-8ubuntu1.11) ... Processing triggers for libc-bin (2.23-0ubuntu10) ... /sbin/ldconfig.real: /usr/local/lib/libopencv_video.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_photo.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_objdetect.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_imgproc.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_imgcodecs.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_dnn.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_core.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_calib3d.so.3.3 is not a symbolic link Processing triggers for man-db (2.7.5-1) ... Processing triggers for ufw (0.35-0ubuntu2) ... Processing triggers for systemd (229-4ubuntu21.4) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up libirs141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.11) ... Setting up bind9utils (1:9.10.3.dfsg.P4-8ubuntu1.11) ... Setting up bind9 (1:9.10.3.dfsg.P4-8ubuntu1.11) ... Adding group `bind' (GID 118) ... Done. Adding system user `bind' (UID 113) ... Adding new user `bind' (UID 113) with group `bind' ... Not creating home directory `/var/cache/bind'. wrote key file "/etc/bind/rndc.key" # invoke-rc.d: could not determine current runlevel Processing triggers for libc-bin (2.23-0ubuntu10) ... /sbin/ldconfig.real: /usr/local/lib/libopencv_video.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_photo.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_objdetect.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_imgproc.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_imgcodecs.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_dnn.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_core.so.3.3 is not a symbolic link /sbin/ldconfig.real: /usr/local/lib/libopencv_calib3d.so.3.3 is not a symbolic link Processing triggers for systemd (229-4ubuntu21.4) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for ufw (0.35-0ubuntu2) ...
BIND9で内向きDNS構築 on UbuntuAdd Star
という記事を参考にして、自分もやってみた。