” DNS SERVER “

Pertama kali yang harus kita lakukan adalah menginstall BIND9 dulu, caranya : Ketik apt-get install bind9

Setelah instalasi kita masuk ke directory etc (cd etc/bind). Pada dir bind kita melakukan konfigurasi, yang kita edit adalah file named.conf. Kita hanya menambahkan perintah pada line yang bercetak tebal saja, seperti dibawah ini :

/ / This Lo the primary configuration file for the BIND DNS Server named.
/ /
/ / Please read /usr/share/doc/bind9/README.Debian.gz for information on
the
/ / structure of BIND configuration files in Debian, *BEFORE* you
customize
/ / this configuration file.
/ /
/ / If you are just adding zones, please do that in
/ etc/bind/named.conf.local

include “/etc/bind/named.conf.option”;

/ / prime the server with knowledge of the root servers
zone “.” {
type hint;
file ‘/etc/bind/db.root”;
};

/ / be authoritative for the localhost forward and reverse zones, and for
/ / broadcast zones as per RFC 1912

zone “localhost” {
type master;
file “/etc/bind/db.local”;
};

zone “127.in-addr.arpa” {
type master;
file “/etc/bind/db.127”;
};

zone “tkj.com.” { => Nama Server
type master;
file “/var/cache/bind/db.debian”; File disimpan
};

zone “192.in-addr.arpa” {
type master;
file “/var/cache/bind/db.192”;
};

zone “0.in-addr.arpa” {
type master;
file “/etc/bind/db.0”;
};

zone “255.in-addr.arpa” {
type master;
file “/etc/bind/db.255”;
};

/ / zone “com” { type delegation-only; };
/ / zone “net” { type delegation-only; };

/ / From the release notes:
/ / Because use many of our users are uncomfortable receiving undelegated

/ / from root or top level domains, other than a few for whom that
behavion
/ / has been trusted and expected _____ name length of time, we have
now
/ / introduced the “root-delegations-only” feature which applies
delegation-only
/ / Logic to all top level domains, and to the root domain. An
exception list
/ / should be specified, including “MUSEUM” and “DE”, and any other top
level
/ / domains from whom undelegated responses are expected and trusted.
/ / root-delegatin-only exclude { “DE”; “MUSEUM”; };

include “/etc/bind/named.conf.local”;

Setelah selesai edit dan menambahkan file kemudian save filenya.
Copy file db.127 dan db.local pada directory yang sama dan kita pindahkan pada directory /var/cache/bind dengan cara cp nama file yang dicopy/tempat directory yg nantinya akan ditempati lalu nama penggantinya misal [cp db.local/var/cache/bind/db.debian], kemudian kita ganti namanya menjadi :
Db.127 menjadi db.192
Db.local menjadi db.debian

Sekarang kita edit file db.192 menjadi :

$TTL 604800 @ IN SOA tkj.com. root.tkj.com.
1 ; serial
604800 ; refresh
86400 ; retry
2419200 ; expire
604800 ; negative cache TTL

:
@ IN NS tkj.com.
1.1.168 IN PTR tkj.com.
www IN PTR tkj.com.

Pada file db.debian kita juga edit filenya :

$TTL 604800 @ IN SOA tkj.com. root.tkj.com.
2 ; serial
604800 ; refresh
86400 ; retry
2419200 ; expire
604800 ; negative cache TTL

:
@ IN NS tkj.com.
@ IN A 192.168.1.1
www IN A 192.168.1.1

Setelah mengedit kedua file tadi. Yang harus kita lakukan selanjutnya adalah restart bind9 dengan menggunakan perintah : /etc/init.d/bind9 restart
Pastikan tidak ada kata failed ya, kalo ada berarti kemungkinan ada file yang keliru waktu mengedit.

Untuk pengecekan, kita ping, dengan cara mengetik : ping http://www.tkj.com
Jika ada jawaban reply maka DNS server berhasil.

sELaMat MeNcOba………..

About muzayyanah

apa adanya " be your self "
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s