Rabu, 02 Januari 2008

Laporan Linux "DNS SERVER"

DNS SERVER
Domain Name System (DNS) merupakan suatu jenis system yang melayani pemetaan IP Address ke FQDN (Fully Qualified Domain Name) dan dari FQDN ke IP Address. Fungsi utama dari system DNS adalah menerjemahkan nama-nama host (hostnames) menjadi nomor IP (IP Address)atau sebaliknya. Fungsi lainnya adalah memberikan suatu informasi tentang suatu host ke seluruh jaringan internet.
Pada system operasi Linux, DNS diimplementasikan dengan menggunakan software yang bernama BIND (Barkeley Internet Name Domain). BIND ini memiliki dua sisi yaitu sisi client dan sisi resolver. Resolver bertugas menanyakan tenteng informasi nama domain yang dikirimkan ke sisi server. Sisi server BIND adalah sebuah daemon yang disebut named. Named inilah yang akan menjawab query-query dari resolver. BIND dapat diinstall dan konfigurasikan pada sebuah PC dalam jaringankantor atau rumah,yang disebut DNS Server.

•Install
Ketikkan perintah pada console :
dpkg –l |grep

Maka akan muncul software yang terinstall sebagai berikut :
user@himatif:~$ sudo dpkg –l |grep bind9
ii bind9-host 9.3.2-2ubuntu1
Version of ‘host’bundled with BIND 9.X
ii libbind9-0 9.3.2-2ubuntu1
BIND9 Shared Library used by BIND

•Konfigurasi file /etc/bind/named.conf
Editlah file /etc/named.conf dikomputer dengan editor yang tersedia.
user@himatif:~$ sudo vi /etc/bind/named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for informationon the
// Structure of BIND configurationfiles 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.options”;

// 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 “0.in-addr.arpa” {
type master;
file “/etc/bind/db.0”;
};


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

zone “himatif.org” {
type master;
file “/etc/bind/db.himatif.org”;
};

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

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

// From the release notes:
// Because many of our users are uncomfortable receiving undelegated answers
// from root ot top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some 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-delegation-only exclude { “DE”; “MUSEUM”; };

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

•Konfigurasi file /etc/bind/
Masuklah pada direktori /etc/bind/ kemudian buatlah file db.himatif.org dan db.192.168.123. Kemudian editlah kedua file tersebut dengan isi sebagai berikut :
user@himatif:/$ sudo vi /etc/bind/db.himatif.org

STTL 86400
SORIGIN himatif.org.
@ IN SOA himatif.org. root.himatif.org. (
200609212315 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS himatif.org.
IN A 192.168.123.1



Setelah menyelesaikan tahapan-tahapan konfigurasi DNS, lalu mengecek apakah DNS yang telah dibuat dapat berjalan dengan baik. Ada tiga perintah untukmengujinya, yaitu : dig, host dan juga ping.

Ping nama domain :
user@himatif:~$ ping himatif.org

PING himatif.org (192.168.123.1) 56(84) bytes of data.
64 bytes from himatif.org (192.168.123.1): icmp_seq=1 ttl=64 time=0.044 ms
64 bytes from himatif.org (192.168.123.1): icmp_seq=2 ttl=64 time=0.043 ms
64 bytes from himatif.org (192.168.123.1): icmp_seq=3 ttl=64 time=0.038 ms

---himatif.org ping statistics---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.038/0.041/0.044/0.007 ms

Tidak ada komentar: