468x60 Ads




Konfigurasi DNS Server Pada Debian 5 Lenny | Uplukz

Assalamualaikum wr. wb.

Pada kesempatan kali ini ane bakal ngejelasin cara konfigurasi DNS server pada Debian 5 Leny. Disini ane bagi postingan ne jadi 3 bagian,, YAITU : Persiapan, Pengaturan / Konfigurasinya, dan bagian terakhir ialah Pengetesan.
@ BAGIAN PERTAMA – PERSIAPAN—————————————————————————————————————
Oke kita anggap komputer kita sudah terinstall dengan Operating System ( OS ) Debian 5.0 lenny dengan ketentuan berikut :
  • Hostname : server
  • IP : 192.168.1.10/24
  • Domain yang akan dibuat : tekaje.com
Lakukan langkah dibawah ini :
1. Hidupkan Server Linux debian anda (pencet CPU nya)
2. Login sebagai root.
@ BAGIAN KEDUA – PENGATURAN/KONFIGURASI——————————————————————————————
3.  Setelah kita berhasil login sebagai ROOT.. Install paket Bind9 untuk DNS Server..
 root@server# apt-get install bind9
4. Setelah itu ente tambahkan script pada file /etc/bind/named.conf.local
 root@server# nano /etc/bind/named.conf.local
Tambahkan script berikut pada baris paling bawah:
zone "tekaje.com" {
type master;
file "/etc/bind/db.tkj";
};

zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.ip";
}
// PENJELASAN :
zone “tekaje.com” = nama domain yang akan kita buat
type Master = Type domainnya master
file “/etc/bind/db.tkj” = file konfigurasi untuk zone forward
zone”1.168.192.in-addr.arpa” = Ip kebalikan dari 192.168.1
file “/etc/bind/db.tkj” = file konfigurasi untuk zone reserve
5. Kemudian copy file db.local menjadi db. tkj
root@server# cp /etc/bind/db.local /etc/bind/db.tkj
6. Lalu edit File /etc/bind/db.tkj untuk zone forward..
root@virgi# nano /etc/bind/db.tkj
Edit sebagai berikut:
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     server.tekaje.com. root.tekaje.com (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      server.tekaje.com.
@       IN      MX      server.tekaje.com.
server  IN      A       192.168.1.1
www     IN      CNAME   server.tekaje.com.
mail    IN      CNAME   server.tekaje.com.
Kemudian ctrl+x lalu save (y).
7. Lalu copy lagi file db.tkj menjadi db.ip
root@server# cp /etc/bind/db.tkj /etc/bind/db.ip
Edit sebagai berikut:
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     server.tekaje.com. root.tekaje.com (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      server.tekaje.com.
10      IN      PTR     server.tekaje.com
Kemudian ctrl+x lalu save (y).
// PENJELASAN :
10 = ialah angka terakhir dari ip server kita
 
8. Setelah itu ente harus mencantumkan ip server tadi kedalam /etc/resolv.conf, file ini berfungsi mendefinisikan ip DNS Server.
root@server# nano /etc/resolv.conf
bila belum tercantum,, tambahkan baris berikut :
nameserver 192.168.1.10
9. Kemudian restart paket bind tersebut..
root@server# /etc/init.d/bind9 restart
@ BAGIAN KETIGA – PENGETESAN—————————————————————————————————————
10. Untuk pengetesan dns yang ente konfigurasi tadi jalan atau tidak, ente dapat mengetikkan perintah:
root@server# nslookup www.tekaje.com
Kalo bener, maka hasilnya sebagai berikut:
Server:          192.168.1.10
Address:        192.168.1.10#53
www.tekaje.com      canonical name = server.tekaje.com.
Name:   server.tekaje.com
Address: 192.168.1.10
11. Untuk lebih meyakinkan kalo ente udah berhasil, coba ente ketikkan perintah PING..
root@server# ping www.tekaje.com
Kalo berhasil hasilnya sebagai berikut :
PING server.tekaje.com (192.168.1.10) 56(84) bytes of data.
64 bytes from server.tekaje.com (192.168.1.10): icmp_seq=1 ttl=64 time=2.82 ms
64 bytes from server.tekaje.com (192.168.1.10): icmp_seq=2 ttl=64 time=0.124 ms
64 bytes from server.tekaje.com (192.168.1.10): icmp_seq=3 ttl=64 time=0.105 ms
^C
--- server.tekaje.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2009ms
rtt min/avg/max/mdev = 0.105/1.017/2.822/1.276 ms
Apabila keluar pesan unknown host. coba ente periksa lagi file-file yang telah kita konfigurasi tadi.. kemungkinan besar terjadi kesalahan pengetikkan saat ente melakukan konfigurasinya.. Sekian dulu penjelasan dari ane..

Wassalamualaikum wr. wb.
READ MORE