Cara Menginstall DNS Server di Ubuntu 16.04
Tutorial Linux Indonesia -- Dns ( Domain Name System ) merupakan protocol yang di gunakan untuk menerjemahkan domain ke alamat ip address atau sebaliknya.
Cara Menginstall DNS Server di Ubuntu 16.04 |
Pada Artikel ini bagol69 akan membahas Cara Menginstall DNS Server di Ubuntu 16.04.
Langkah 1 : Install DNS Server
[root@bagol69~# apt-get
install bind9 bind9utils
Langkah 2 : DNS Caching Only
Jika anda hanya mengaktifkan dns cache only saja. Anda perlu menambahkan dns google 8.8.8.8 di forwarded.
[root@bagol69~# nano /etc/bind/named.conf.options
// forwarders {
//
8.8.8.8;
// };
Langkah 3 : Pengetesan DNS Cache Only
[root@bagol69~# dig -x 127.0.0.1
;
<<>> DiG 9.10.3-P4-Ubuntu
<<>> -x 127.0.0.1
;; global options: +cmd
;; Got answer:
;;
->>HEADER<
;; flags: qr aa rd ra; QUERY:
1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:;
udp: 4096
;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR
;; ANSWER SECTION:
1.0.0.127.in-addr.arpa.
604800 IN PTR
localhost.
;; AUTHORITY SECTION:
127.in-addr.arpa. 604800
IN NS localhost.
;; ADDITIONAL SECTION:
localhost. 604800 IN
A 127.0.0.1
localhost. 604800 IN
AAAA ::1
;; Query time: 0 msec
;; SERVER:
127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jun 15 07:57:16
EDT 2018
;; MSG SIZE rcvd: 132
[root@bagol69:~#
Langkah 4 : Menambahkan Zone Domain
[root@bagol69~# nano named.conf.local
//
// Do any local configuration
here
//
// Consider adding the 1918
zones here, if they are not used in your
// organization
//include
"/etc/bind/zones.rfc1918";
zone "bagol69.com" {
type master;
file
"/etc/bind/bagol69.for";
};
zone
"10.10.10.in-addr.arpa" {
type master;
file
"/etc/bind/ip.bagol69";
};
Langkah 5 : Copy Databases File Forwarded dan File Rervesed
[root@bagol69~# cd
/etc/bind
[root@bagol69:/etc/bind# cp
db.local bagol69.for
[root@bagol69:/etc/bind# cp
db.127 ip.bagol69
Langkah 6 : Menambahkan File Forwaded.
[root@bagol69~# nano
/etc/bind/bagol69.for
;
; BIND data file for local
loopback interface
;
$TTL 604800
@ IN
SOA bagol69.com.
root.bagol69.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN
NS bagol69.com.
@ IN
A 10.10.10.1
www IN
A 10.10.10.1
webmail IN A
10.10.10.1
mail IN
A 10.10.10.1
ftp IN
A 10.10.10.1
proxy IN
A 10.10.10.1
Langkah 7 : Menambahkan File Reversed.
[root@bagol69~# nano
/etc/bind/ip.bagol69
;
; BIND reverse data file for
local loopback interface
;
$TTL 604800
@ IN
SOA bagol69.com.
root.bagol69.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN
NS bagol69.com.
1 IN
PTR bagol69.com.
1 IN
PTR www.bagol69.com.
1 IN
PTR webmail.bagol69.com.
1 IN
PTR mail.bagol69.com.
1 IN
PTR ftp.bagol69.com.
1 IN
PTR proxy.bagol69.com.
Langkah 8 : Berikan Hak Akes File DNS Server
[root@bagol69~# chmod -R 755 /etc/bind
root@bagol69:/etc/bind# chown
-R bind:bind /etc/bind
Langkah 10 : Anda Check File Zone Domain.
[root@bagol69~# named-checkconf /etc/bind/named.conf
[root@bagol69:/etc/bind#
named-checkconf /etc/bind/named.conf.local
Langkah 11 : Anda Check File Reversed dan Forwarded.
[root@bagol69~# named-checkzone bagol69.for
/etc/bind/bagol69.for
zone bagol69.for/IN: loaded
serial 2
OK
[root@bagol69:/etc/bind#
named-checkzone ip.bagol69 /etc/bind/ip.bagol69
zone ip.bagol69/IN: loaded serial
1
OK
[root@bagol69:/etc/bind#
Artikel Terkait
Cara Install Ubuntu 16.04 Step By Step Lengkap
Cara Setting IP Address di Ubuntu 16.04
Langkah 12 : Tambahkan alamat ip address dari dns server.
[root@bagol69~# nano
/etc/network/interfaces
dns-nameservers 10.10.10.1
Langkah 13 : Restart DNS Server
[root@bagol69~# systemctl restart bind9
Langkah 14 : Pengetesan DNS SERVER
[root@bagol69~# nslookup bagol69.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: bagol69.com
Address: 10.10.10.1
Baca Juga
Cara Menginstall SSH di Ubuntu 16.04
Cara Mengistall DHCP SERVER di UBUNTU 16.04
Langkah 15 : Pengetesan DNS Server
[root@bagol69~# dig bagol69.com
;
<<>> DiG 9.10.3-P4-Ubuntu
<<>> bagol69.com
;; global options: +cmd
;; Got answer:
;;
->>HEADER<
;; flags: qr aa rd ra; QUERY:
1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:;
udp: 4096
;; QUESTION SECTION:
;bagol69.com. IN A
;; ANSWER SECTION:
bagol69.com. 604800 IN
A 10.10.10.1
;; AUTHORITY SECTION:
bagol69.com. 604800 IN
NS bagol69.com.
;; Query time: 0 msec
;; SERVER:
127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jun 15 08:13:46
EDT 2018
;; MSG SIZE rcvd: 70
Anda merasa tutorial ini bermanfaat ?
Bbagikan dengan teman-teman anda, untuk membuat tetap hidup.
uuntuk topic bantuan lebih lanjut, Jelajahi situs web kami,
jjadilah yang pertama berkomentar,
Search Resent Terms
konfigurasi dns server ubunut di virtualbox
cara konfigurasi dns server ubuntu 16.04
konfigurasi dns server ubuntu 8
konfigurasi dns server ubuntu di virtualbox
konfigurasi dns server ubuntu
konfigurasi dns server ubuntu
konfigurasi dns server ubunut di virtualbox
konfigurasi dns server ubuntu