Konfigurasi DNS - Middun -->
QGxDcejG0K5y42ulRjpCEwY9XFqHHrCQFS9iVCtr
Bookmark

Konfigurasi DNS

 


Konfigurasi DNS (Domain Name Service)

 

 

1) apt-get install bind9

2) nano /etc/bind/named.conf.local

zone   "lks5.sch.id" {

                          type master;

                           file    "/var/cache/bind/db.lks5";

             };

 

 

              zone  "5.168.192.in-addr.arpa" {

                          type master;

                          file   "/var/cache/bind/db.192";

            };

 

3) 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.1;

                                    };

                                    allow-query { any; };

                                    auth-nxdomain no; # conform to RFC1035

                                    listen-on-v6 { any; };

                  };

 

4) cp /etc/bind/db.local  /var/cache/bind/db.lks5

5) cp /etc/bind/db.127  /var/cache/bind/ db.192

6) nano /var/cache/bind/db.lks5

$TTL 604800

@         IN        SOA     admin.lks5.sch.id.      root.lks5.sch.id. (

                                                    2                                     ; Serial

                                                    604800                          ; Refresh

                                                    86400                            ; Retry

                                                    2419200                        ; Expire

                                                    604800 )                        ; Negative Cache TTL

 ;

lks5.sch.id.           IN       NS         admin.lks5.sch.id.

lks5.sch.id.           IN       MX 10  mail.lks5.sch.id.

admin                   IN       A           192.168.5.1

www                     IN       A           192.168.5.1

mail                       IN       A           192.168.5.1

ftp                        IN       A          192.168.5.1

 

 

7) nano /var/cache/bind/db.192

$TTL 604800

@         IN         SOA     admin.lks5.sch.id.      root.lks5.sch.id. (

                                                    1                                    ; Serial

                                                    604800                        ; Refresh

                                                    86400                           ; Retry

                                                    2419200                      ; Expire

                                                    604800 )                      ; Negative Cache TTL

;

@         IN         NS        admin.lks5.sch.id.

1           IN         PTR      admin.

 

8) nano /etc/resolv.conf

search lks5.sch.id

nameserver 127.0.0.1

nameserver 192.168.5.1

 

9) /etc/init.d/bind9  restart

0

Post a Comment