Install DNS Ubuntu 20.04

Dari Dokumentasi Robie
Revisi sejak 19 September 2023 07.09 oleh Robie (bicara | kontrib)
Loncat ke navigasi Loncat ke pencarian

BIND (Berkeley Internet Name Domain) adalah implementasi dari protokol Domain Name System (DNS). Di dalam-nya termasuk,

Di Ubuntu, Instalasi BIND sangat mudah hanya dengan menggunakan perintah

sudo apt -y install dnsutils bind9
~$ sudo apt -y install dnsutils bind9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bind9-utils dns-root-data python3-ply
Suggested packages:
  bind-doc resolvconf python-ply-doc
The following NEW packages will be installed:
  bind9 bind9-utils dns-root-data dnsutils python3-ply
0 upgraded, 5 newly installed, 0 to remove and 156 not upgraded.
Need to get 459 kB of archives.
After this operation, 1974 kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-ply all 3.11-3ubuntu0.1 [46.3 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 bind9-utils amd64 1:9.16.1-0ubuntu2.15 [172 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu focal/main amd64 dns-root-data all 2019052802 [5300 B]
Get:4 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 bind9 amd64 1:9.16.1-0ubuntu2.15 [233 kB]
Get:5 http://id.archive.ubuntu.com/ubuntu focal-updates/universe amd64 dnsutils all 1:9.16.1-0ubuntu2.15 [2756 B]
Fetched 459 kB in 28s (16.5 kB/s)                                              
Selecting previously unselected package python3-ply.
(Reading database ... 73108 files and directories currently installed.)
Preparing to unpack .../python3-ply_3.11-3ubuntu0.1_all.deb ...
Unpacking python3-ply (3.11-3ubuntu0.1) ...
Selecting previously unselected package bind9-utils.
Preparing to unpack .../bind9-utils_1%3a9.16.1-0ubuntu2.15_amd64.deb ...
Unpacking bind9-utils (1:9.16.1-0ubuntu2.15) ...
Selecting previously unselected package dns-root-data.
Preparing to unpack .../dns-root-data_2019052802_all.deb ...
Unpacking dns-root-data (2019052802) ...
Selecting previously unselected package bind9.
Preparing to unpack .../bind9_1%3a9.16.1-0ubuntu2.15_amd64.deb ...
Unpacking bind9 (1:9.16.1-0ubuntu2.15) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../dnsutils_1%3a9.16.1-0ubuntu2.15_all.deb ...
Unpacking dnsutils (1:9.16.1-0ubuntu2.15) ...
Setting up python3-ply (3.11-3ubuntu0.1) ...
Setting up dnsutils (1:9.16.1-0ubuntu2.15) ...
Setting up dns-root-data (2019052802) ...
Setting up bind9-utils (1:9.16.1-0ubuntu2.15) ...
Setting up bind9 (1:9.16.1-0ubuntu2.15) ...
named-resolvconf.service is a disabled or a static unit not running, not starting it.
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ufw (0.36-6ubuntu1) ...
robie@robie:~$ 
sudo apt -y install bind9 bind9utils bind9-doc
~$ sudo apt -y install bind9 bind9utils bind9-doc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bind9 is already the newest version (1:9.16.1-0ubuntu2.15).
The following NEW packages will be installed:
  bind9-doc bind9utils
0 upgraded, 2 newly installed, 0 to remove and 156 not upgraded.
Need to get 256 kB of archives.
After this operation, 1923 kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 bind9-doc all 1:9.16.1-0ubuntu2.15 [253 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu focal-updates/universe amd64 bind9utils all 1:9.16.1-0ubuntu2.15 [2756 B]
Fetched 256 kB in 22s (11.9 kB/s)                                              
Selecting previously unselected package bind9-doc.
(Reading database ... 73223 files and directories currently installed.)
Preparing to unpack .../bind9-doc_1%3a9.16.1-0ubuntu2.15_all.deb ...
Unpacking bind9-doc (1:9.16.1-0ubuntu2.15) ...
Selecting previously unselected package bind9utils.
Preparing to unpack .../bind9utils_1%3a9.16.1-0ubuntu2.15_all.deb ...
Unpacking bind9utils (1:9.16.1-0ubuntu2.15) ...
Setting up bind9-doc (1:9.16.1-0ubuntu2.15) ...
Setting up bind9utils (1:9.16.1-0ubuntu2.15) ...
robie@robie:~$ 


Untuk menjalankan DNS Server tidak sukar. Setelah terinstall, dapat dilakukan dengan menggunakan perintah,

# /etc/init.d/bind9 restart


Mengkonfigurasi DNS Server

Hal yang mungkin agak rumit adalah mengkonfigurasi DNS Server. Pada dasarnya DNS Server hanya sebuah tabel dengan format kira-kira sebagai berikut,

hostname     IN    A       xxx.xxx.xxx.xxx
hostname     IN    MX 10   mailserver
hostname     IN    NS      dns.server

Bagi anda yang masih pusing cara mengkonfigurasi-nya ada baiknya menggunakan Webmin supaya jauh lebih mudah mengkonfigurasi DNS Server


Bagi anda yang penasaran dan ingin mengkonfigurasi DNS Server secara manual menggunakan tangan. Ada baiknya membaca-baca contoh konfigurasi ENUM Server

Referensi

artikel ini juga masuk di rubrik artikel direktori. jika ada artikel menarik silakan submit manual di web ID atau kita juga bisa memasukkan otomatis tanpa anda submit artikelnya.