Kamis, 22 November 2012

Membuat DNS Server di Debian

1. LANGKAH-LANGKAH KONFIGURASI DEBIAN
  • Login : jarkom (contoh)
  • Passwd : jarkom (contoh)
  • Masuk aplikasi root terminal : aplikasi >accesoris>root terminal
ALAMAT IP
Melihat IP : #ifconfig enter
  • mengkonfigurasi : pico /etc/network/interfaces
ketik:
allow-hotplug eth0
iface eth0 inet static
address 200.100.50.20
netmask 255.255.255.240
network 200.100.50.16
broadcast 200.10.50.31

allow-hotplug eth1
iface eth0 inet static
address 192.168.3..9
netmask 255.255.255.224
network 192.168.3.0
broadcast 192.168.3.31
gateway 192.168.3.30


SIMPAN

Restart service dengan perintah : /etc/init.d/networking restart


2. MEMBUAT DNS SERVER

  1. index paket dg perintah : apt-cdrom add enter masukan dvd ke dvdrom, tunggu sampai selesai
  2. menginstall DNS server dg perintah : apt-get install bind9 enter dvd harus di dalam dvdrom, tunggu sampai selesai
Mengkonfigurasi DNS Server ada tiga file yang perlu di konfigurasi yaitu file :
  1. konfigurasi utama (named.conf)
  2. zona forward (sekolah)
  3. zona revers (sekolah.rev)

SETING FILE NAMED.CONF

  • Buka file named.conf dg perintah : pico /etc/bind/named.confTambahkan isian zona berikut :


zone "sekolah.sch.id" {
type master;

file "/etc/bind/db.sekolah"; };

zone "50.100.200.in-addr.arpa" {

type master;

file "/etc/bind/db.sekolah.rev"; };



KELUAR & SIMPAN

Buat file db.sekolah dengan langkah :
  1. Langkah pertama menyalin file db.local menjadi db.sekolah dengan perintah : cp /etc/bind/db.local /etc/bind/db.sekolah
  2. Langkah kedua buka file tersebut dg perintah : pico /etc/bind/db.sekolah
  3. Tulis seperti berikut :

;
; BIND data file for domain sekolah.sch.id
;
$TTL 604800
@ IN SOA sekolah.sch.id. root.sekolah.sch.id. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN A sekolah.sch.id.
ns IN A 200.100.50.20
www IN A 200.100.50.20
jurusan IN A 200.100.50.20


KELUAR n SIMPAN


Buat file db.sekolah.rev dengan langkah :
  1. Langkah pertama menyalin file db.0 menjadi db.sekolah.rev dengan perintah : cp /etc/bind/db.0 /etc/bind/db.sekolah.rev
  2. Langkah kedua buka file tersebut dg perintah : pico /etc/bind/db.sekolah.rev
  3. Tulis seperti berikut :


;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA sekolah.sch.id. root.sekolah.sch.id. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sekolah.sch.id.
20 IN PTR ns.sekolah.sch.id.
20 IN PTR www.sekolah.sch.id.
20 IN PTR jurusan.sekolah.sch.id.


KELUAR dan SIMPAN

  • Buka file resolv.conf dengan perintah : pico/etc/resolv.conf
  • Tambahkan baris berikut :

nameserver 200.100.50.20


KELUAR dan SIMPAN


  • Buka file hosts dengan perintah : pico /etc/hosts
  • Edit menjadi berikut :

127.0.0.1 localhost
200.100.50.20 www.sekolah.sch.id www


KELUAR n SIMPAN

  • Buka file hostname dengan perintah : pico /etc/hostname
  • Apapun yang ada di situ dig anti dengan www

KELUAR n SIMPAN

  • Restart DNS server dengan perintah : /etc/init.d/bind restart
  • Tes DNS server dengan perintah :

ping www.sekolah.sch.id
ping jurusan.sekolah.sch.id


jika berhasil maka ada reply

Nah selesai Langkah-langkah Konfigurasi DNS Server di Debian
Semoga artikel Membuat DNS Server di Debian ini bermanfaat, Amin.,

Tidak ada komentar:

Posting Komentar