DNS Server

1. Instalasi : 

#apt-get install bind9

2. Setelah instalasi tambahkan perintah pada file :

#nano /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 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.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 “etha.com.” {                                                   < domain name/dns

type master;

file “/etc/bind/db.debian”;

};

 

zone “192.in-addr.arpa” {

type master;

file “/etc/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 many of our users are uncomfortable receiving undelegated answers

//  from root or 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”;

 

3. Copy file db.127 dan db.local pada directory yang sama,

db.127 menjadi db.127 : #cp db.127 db.192

db.local menjadi db.debian : #cp db.local db.debian

4. Edit file db.192 :

;

; BIND reverse data file for local loopback interface

;

$TTL 604800

@            IN                SOA            etha.com. root.etha.com. (

                                                                             1 ; Serial

                                                              604800 ; Refresh

                                                                 86400 ; Retry

                                                            2419200 ; Expire

                                                            604800 ) ; Negative Cache TTL

;

@                          IN                 NS                      etha.com.

1.1.168               IN                 PTR                   etha.com.

www                    IN                 PTR                   etha.com.

 

5. Edit juga file db.debian :

;

; BIND data file for local loopback interface

;

$TTL 604800

@               IN                  SOA               etha.com. root.etha.com. (

                                                                                1 ; Serial

                                                                 604800 ; Refresh

                                                                    86400 ; Retry

                                                               2419200 ; Expire

                                                              604800 ) ; Negative Cache TTL

;

@                       IN                  NS                     etha.com.

@                       IN                   A                       192.168.1.1

www                 IN                   A                       192.168.1.1

6. Restart DNS server :

#/etc/init.d/bind9 restart

 

7. Pengecekan :

– Pada computer server :

#ping http://www.etha.com

– Pada computer client :

Start > Run > ketik ping http://www.etha.com

– Jika ada jawaban reply DNS server berhasil.

– Dan atau double klik Internet Explorer, pada address ketik : http://www.etha.com

^_^

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

%d bloggers like this: