PAIDJO.COM akan membahas mengenai Install DNS Bind9 Ubuntu 12.04 TLS, disini penulis tidak akan menerangkan apa itu DNS tapi lebih pada bagaimana menginstall Domain Name Server Bind9 pada Ubuntu 12.04 TLS.
Pastikan Ubuntu sudah terkoneksi Internet, persiapkan nama domain yang akan digunakan untuk setting misalnya disini menggunakan domain paidjo.com
Install DNS Bind9 Ubuntu 12.04 TLS
Install bind9 ubuntu terlebih dahulu
# apt-get install bind9
Buat file db untuk domain
# touch /etc/bind/db.paidjo.com# cp /etc/bind/db.local /etc/bind/db.paidjo.com
Edit file db.paidjo.com seperti berikut
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA ns1.paidjo.com. root.paidjo.com. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTLIN NS ns1.paidjo.com.IN MX 10 zimbra.paidjo.com.
@ IN A 192.168.56.2ns1 IN A 192.168.56.2 www IN A 192.168.56.2 zimbra IN A 192.168.56.2
lmap IN CNAME zimbra pop IN CNAME zimbra smtp IN CNAME zimbra webmail IN CNAME zimbra
Buat file sub.paidjo.com
# touch /etc/bind/sub.paidjo.com# cp /etc/bind/db.127 /etc/bind/sub.paidjo.com
Edit file sub.paidjo.com
; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA ns1.paidjo.com. root.paidjo.com. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL@ IN NS ns1.paidjo.com. 2.56.168 IN PTR paidjo.com. 2.56.168 IN PTR zimbra.paidjo.com. 2.56.168 IN PTR www.paidjo.com.
Edit file /etc/bind/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”; //domain paidjo.com
zone "paidjo.com" { type master; file "/etc/bind/db.paidjo.com"; };zone "56.168.192.in-addr.arpa" { type master; file "/etc/bind/sub.paidjo.com"; };
Edit file /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTENnameserver 192.168.56.2
untuk melakukan test silahkan gunakan perintah berikut
# dig paidjo.com# nslookup paidjo.com
Baca Juga : Install Remastersys Ubuntu
Untuk tanya jawab silahkan follow @KangPaidjo ditwitter langsung fast reponse silahkan mention