Konfigurasi DNS & vir. DNS - Middun -->
QGxDcejG0K5y42ulRjpCEwY9XFqHHrCQFS9iVCtr
Bookmark

Konfigurasi DNS & vir. DNS

 


Konfigurasi DNS (Domain Name Service)

 

1)Konfigurasi  IP  Server

nano /etc/network/interfaces

       kemudian edit filenya menjadi sebagai berikut:

 

auto eth0

iface eth0 inet static

address 192.168.5.130

netmask 255.255.255.248

network 192.168.5.128

broadcast 192.168.5.135

gateway 192.168.5.129

 

auto eth0:0

iface eth0:0 inet static

address 192.168.5.131

netmask 255.255.255.248

network 192.168.5.128

broadcast 192.168.5.135

 

 

Restart network perintah

 

/etc/init.d/networking restart

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*Konfigurasi BIND9*

 

2) apt-get install bind9

3) nano /etc/bind/named.conf        {tambahkan pada baris paling bawah}

zone   "itservice5.co.id" {

                        type master;

                        file    "/etc/bind/db.it";

             };

 

zone   "lks5.co.id" {

                        type master;

                        file    "/etc/bind/db.lks5";

             };

 

              zone  "5.168.192.in-addr.arpa" {

                        type master;

                        file   "/etc/bind/db.192";

};

 

4) nano /etc/bind/named.conf.options

(yang diaktifkan hanya yang di bawah ini, yang lainnya jangan dirubah)

                  options {

                                   directory "/var/cache/bind";

                                   forwarders {

                                                192.168.5.130;

                                                20.20.20.62;

                                                203.130.193.74;

                                                8.8.8.8;

                                    };

                                    allow-query { any; };

                                    auth-nxdomain no; # conform to RFC1035

                        listen-on-v6 { any; };

            };

 

5) cp /etc/bind/db.local  /etc/bind/db.it

6) cp /etc/bind/db.local  /etc/bind/db.lks5

7) cp /etc/bind/db.127  /etc/bind/ db.192

8) nano /etc/bind/db.it

$TTL 604800

@         IN        SOA     ns.itservice5.co.id.     root.ns.itservice5.co.id. (

                        2                                     ; Serial

                        604800                          ; Refresh

                        86400                            ; Retry

                        2419200                        ; Expire

                        604800 )                        ; Negative Cache TTL

 ;

@                     IN         NS       ns.itservice5.co.id.

@                     IN        A          192.168.5.130

ns                    IN        A          192.168.5.130

www                IN        A           192.168.5.130

mail                  IN        A          192.168.5.130

ftp                   IN        A          192.168.5.130

ntp                  IN        A          192.168.5.130

9) nano /etc/bind/db.lks5

$TTL 604800

@         IN        SOA     ns.lks5.co.id.    root.ns.lks5.co.id. (

                        2                                     ; Serial

                        604800                          ; Refresh

                        86400                            ; Retry

                        2419200                        ; Expire

                        604800 )                        ; Negative Cache TTL

 ;

@                     IN         NS       ns.lks5.co.id.

@                     IN        A          192.168.5.131

ns                    IN        A          192.168.5.131

www                IN        A           192.168.5.131

mail                  IN        A          192.168.5.131

ftp                   IN        A          192.168.5.131

ntp                  IN        A          192.168.5.131

 

 

10) nano /etc/bind/db.192

$TTL 604800

@         IN         SOA     ns.itservice5.co.id.      root.ns.itservice5.co.id. (

                        1                                    ; Serial

                        604800                        ; Refresh

                        86400                           ; Retry

                        2419200                      ; Expire

                        604800 )                      ; Negative Cache TTL

;

@         IN         NS        ns.itservice5.co.id.

130      IN         PTR      ns.itservice5.co.id.

131      IN        PTR      ns.lks5.co.id.

 

11) nano /etc/resolv.conf

search itservice5.co.id

search lks5.co.id

nameserver 192.168.5.130

nameserver 20.20.20.62

nameserver 203.130.193.74

 

12) /etc/init.d/bind9  restart

0

Post a Comment