You are on page 1of 6

DNS S

DNS SERVER ERVER


1. Lakukan login sebagai root pada terminal
#su
2. Lakukan installasi paket tersebut dengan perintah
#apt-get install bind9
3. Setelah melakukan installasi terbentuk Konfigurasi file yang ada di /etc/bind dan baca file
named.conf, named.conf.local dan named.conf.option
Berikut ini adalah isi file named.conf, tidak perlu merupakan perubahan terhadap file ini.
// This is the primary configuration file for the BIND DNS server
named
// !lease read /usr/share/doc/bind9/"#$D%#Debiang& for information
on the
// structure of BIND configuration files in Debian' (B#)*"#( you
customi&e
// this configuration file
// If you are +ust adding &ones' please do that in
/etc/bind/namedconflocal
include ,/etc/bind/namedconfoptions,-
// prime the server .ith /no.ledge of the root servers
&one ,, 0
type hint-
file ,/etc/bind/dbroot,-
1-
// be authoritative for the localhost for.ard and reverse &ones' and
for
// broadcast &ones as per ")2 3934
&one ,localhost, 0
type master-
file ,/etc/bind/dblocal,-
1-
&one ,345in-addrarpa, 0
type master-
file ,/etc/bind/db345,-
1-
&one ,6in-addrarpa, 0
type master-
file ,/etc/bind/db6,-
1-
&one ,477in-addrarpa, 0
type master-
file ,/etc/bind/db477,-
1-
include ,/etc/bind/namedconflocal,-
Selanjutnya terdapat file named.conf.local, awalnya isi file ini masih kosong, isi dengan
ona domain yang akan kita buat serta re!erse domain sbb "
//
// Do any local configuration here
// 2onsider adding the 3938 &ones here' if they are not used in
your
// organi&ation
//include ,/etc/bind/&onesrfc3938,-
&one ,ta/ehomecom, 0 // &ona domain
type master- //tipe domain
file ,/var/cache/bind/dbta/ehome,- //berisi file domain
/ita
1-
&one ,36847436in-addrarpa, 0 //&ona reverse diisi dengan
no9net.or/9id yang dibali/ penulisannnay
type master-
file ,/var/cache/bind/dbreverse,- // berisi file reverse
/ita
1-

file named.conf.option berisi option tambahan pada domain kita, isikan sbb :
options 0
directory ,/var/cache/bind,-
// If there is a fire.all bet.een you and nameservers you .ant
// to tal/ to' you may need to fi: the fire.all to allo. multiple
// ports to tal/ See http;//.../bcertorg/vuls/id/86633<
=uery-source address ( port 7<-
// If your IS! provided one or more I! addresses for stable
// nameservers' you probably .ant to use them as for.arders
// >ncomment the follo.ing bloc/' and insert the addresses replacing
// the all-6?s placeholder
for.arders 0
46437@3584-
46437@358<-
1-
auth-n:domain yes- # conform to ")236<7
listen-on-vA 0 any- 1-
1-
Selanjutnya siapkan dua file sesuai isi file yang ada pada file named.conf.local yaitu
/cache/bind/db.takehome dan /!ar/cache/bind/db.re!erse. #indah ke direktori
/!ar/cache/bind dan buat $ file " db.takehome.com dan db.re!erse, sesuaikan contoh
dibawah dengan konfigurasi no ip komputer anda dan nama domain yang anda buat.
File db.takehome :
-
- BIND data file for local loopbac/ interface
-
BTTC A6@866
D IN S*$ localhost rootlocalhost E
4 - Serial
A6@866 - "efresh
8A@66 - "etry
4@39466 - #:pire
A6@866 F - Negative 2ache TTC
-
D IN NS localhost
D IN $ 36474368398
... IN $ 36474368398
mail IN $ 36474368398
file IN $ 36474368398
pro:y IN $ 36474368398
File db.reverse :
-
- BIND reverse data file for broadcast &one
-
BTTC A6@866
D IN S*$ localhost rootlocalhost E
3 - Serial
A6@866 - "efresh
8A@66 - "etry
4@39466 - #:pire
A6@866 F - Negative 2ache TTC
-
D IN NS localhost
398 IN !T" ...ta/ehomecom
398 IN !T" mailta/ehomecom
398 IN !T" fileta/ehomecom
398 IN !T" pro:yta/ehomecom
Selanjutnya Edit file /etc/resolv.conf tambahkan kata di baah pada bagian paling atas
atau ubah sesuai dengan konfigurasi komputer anda
nameserver 36474368398
Lakukan restart pada komputer anda
#/etc/init.d/bind9 restart
!. Lakukan testing hasil percobaan installasi dan konfigurasi paket yang sudah dilakukan
denagn command berikut ini. "ika tidak ada error berarti berhasil.
#nslookup
%ambar $. &asil #ercobaa
Virtual Domain
1. Edit file /etc/bind/named.conf.local, tambahkan configurasi virtual domain
2. Buat file virtualdomain.conf pada direktori yang sudah ditentukan isikan nama
domain yang akan dibuat, misal domain admin.info dan jarkom.info sbb :
. Buat dua file domain tersebut copikan dari filedomain yang sudah ada misal
db.takehome.com
!. "elanjutnya restart dns server
#. $akukan testing dengan ping ke domain baru

You might also like