Anda di halaman 1dari 3

DNS Server

1. $ apt-get update 2. $ apt-get install bind9 3. $ nano /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 network 192.168.1.0 gateway 192.168.1.1 broadcast 192.168.1.255 4. $ /etc/init.d/networking restart 5. $ nano /etc/bind/named.conf.local zone irpansuryana.com" { type master; file "/etc/bind/db.irpansuryana.com"; }; zone 1.168.192.in-addr.arpa" { type master; file "/etc/bind/db.1.168.192"; };

6. $ cp /etc/bind/db.local /etc/bind/db.irpansuryana.com 7. $ nano /etc/bind/db.irpansuryana.com Ubahlah zonanya, (cara cepatnya cukup dengan menekan Ctrl+/ dan ubahlah localhost menjadi irpansuryana.com lalu All) $TTL 604800 @ IN SOA

ns1.irpansuryana.com. root.irpansuryana.com. ( 2011101401 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800); Negative Cache TTL ns1.irpansuryana.com. 192.168.1.1 192.168.1.1 192.168.1.1

; @ ns1 www

IN IN IN IN

NS A A A

8. $ cp /etc/bind/db.127 /etc/bind/db.192.168.1 9. $ nano /etc/bind/db.192.168.1 $TTL 604800 @ IN SOA

ns1.irpansuryana.com. root.irpansuryana.com. ( 2011101401 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800); Negative Cache TTL ns1.irpansuryana.com. ns1.irpansuryana.com. www.irpansuryana.com.

; @ 1 1

IN IN IN

NS PTR PTR

10. $ nano /etc/resolv.conf Tulis bagian dibawah ini: search irpansuryana.com nameserver 192.168.1.1

domain irpansuryana.com domain www.irpansuryana.com 11. Restart Bind9 dan Network-nya $ /etc/init.d/bind9 restart $ /etc/init.d/networking restart 12. $ dig irpansuryana.com Catatan: a. Pastikan memanggil nama domain dengan IP Address terlebih dahulu >ping 192.168.1.1 >ping irpansuryana.com Bila terpanggil maka akan Replay dari 192.168.1.1 b. Apabila masih ada yang salah cek dengan: #cat /var/log/syslog c. Bila ingin menghapus bind9, tulis perintah: $ apt-get remove --purge bind9

WEB Server
$ apt-get install apache2 $ nano /var/www/index.html $ /etc/init.d/apache2 restart

FTP Server
$ apt-get install proftpd $ nano /etc/proftpd/proftpd.conf $ /etc/init.d/proftpd restart