Konfigurasi Linux Debian menjadi DNS Server

Pertama Lakukan instalasi bind9
# apt-get install bind9

ada 3 file penting pada konfigurasi DNS yaitu db.127, db.local, dan named.conf
semua file tersebut ada di direktory /etc/bind

dalam tutorial ini saya memakai IP. 200.50.50.1 yang akan di resolv menjadi nama domain.
okelah kalau begitu, kita mulai :)
masuk ke direktory /etc/bind
#cd /etc/bind

salinlah file db.127 menjad file dgn namai 200 (dari mana 200)
200 adalah hanya sebuah nama file, saya ambil dari oktet pertama IP Address yang sudah di tentukan. by the way, inilah perintahnya

#cp db.127 200

lalu ganti nama file db.local menjadi nama domain yang kita tentukan

#cp db.local debianku.com

setelah itu edit lah file 200, saya memakai pico sebagai editor teks
#pico /etc/bind/200

berikut ini isi file 200

;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA www.debianku.com. root.debianku.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
6 IN PTR www.debianku.com.

setelah itu simpan file tersebut
lalu edit file debianku.com

#pico /etc/bind/debianku.com

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA www.debianku.com. root.debianku.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
@ IN A 127.0.0.1
www IN A 200.50.50.1

lalu simpan
edit file named.conf

#pico /etc/bind/named.conf

zone "debianku.com" {type master;file "/etc/bind/debianku.com";};zone "200.in-addr.arpa" { type master;file "/etc/bind/200";};

simpan file
restart bind 9 dengan perintah :
#/etc/init.d/bind9 restart

test koneksi DNS dengan perintah
#nslookup www.debianku.com

selesai, thanks
- stay away from drugs

farrel2008 – Mon, 2010 – 02 – 15 00:55

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Nice Info

nice info :D
bagus ni buat dicoba

grandiyf (not verified) – Thu, 2010 – 03 – 11 12:49

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.