on Jumat, 08 Februari 2013
1. DNS Server
Instalasi
# apt-get install bind9
# cd /etc/bind
# pico named.conf
Edit bagian ini:
    zone “mayhandy.com”{
            type master;
            file “db.may”;                 (file ini ada di /var/cache /bind)
};
           
zone “192.in-addr.arpa”{
            type master;
            file "db.handry”;                 (file ini ada di /var/cache /bind)
};

# cp db.local /var/cache/bind/db.may
# cp db.127 /var/cache/bind/db.handry
# cd /var/cache/bind
# pico db.may

Edit bagian ini
@                    IN      SOA     mayhandry.com. root.mayhandry.com. (
                              2                ; Serial
                         604800           ; Refresh
                          86400            ; Retry
                        2419200         ; Expire
                         604800 )         ; Negative Cache TTL
;
@                    IN      NS      mayhandry.com.
@                    IN      A       192.168.10.35                  (sesuaikan ip kita)
www                            IN      A       192.168.10.35                  (sesuaikan ip kita)
ftp                                IN      A       192.168.10.35
mail                              IN      A       192.168.10.35
stremaing                      IN      A       192.168.10.35
# pico db.handry

Edit bagian ini:
$TTL    604800
@       IN      SOA     mayhandry.com. root.mayhandry.com. (
                              1                ; Serial
                         604800           ; Refresh
                          86400            ; Retry
                        2419200         ; Expire
                         604800 )         ; Negative Cache TTL
;
@                                IN      NS          mayhandry.com.
35.10.168       IN      PTR        mayhandry.com. 

# pico /etc/resolv.conf
Edit bagian ini:
          search mayhandry.com                         
          nameserver 192.168.10.35

# /etc/init.d/bind restart

cek dg perintah:
# nslookup 192.168.10.35
# nslookup 192.168.10.35

sudahh :)

0 komentar:

Posting Komentar