You are on page 1of 2

1. setting dhcp a. -> nano /etc/network/interfaces b.

-> edit file auto eth0 iface eth0 inet static address 192.168.103.1 netmask 255.255.255.0 c. -> /etc/init.d/networking restart 2 Setting DHCP -> apt-get install dhcp3-server -> nano /etc/dhcp/dhcpd.conf -> edit file # A Slighty subnet 192.168.103.0 netmask 255.255.255.0 { range 192.168.103.2 192.168.103.254; option domain-name-server smk.com; option domain-name "smk.com" option routers 192.168,103.1; option broadcast-address 192.168.103.255; Default-lease-time 600; Max-lease-time-7200; } -> /etc/init.d/isc-dhcp-server restart 3. Setting DNS -> apt-get install bind9 -> nano /etc/bind/named.conf.local zone "smk.com"{ Type master; file "/etc/bind/smk.local"; }; zone "103.168.192.in-add.arpa"{ Type master; file "/etc/bind/smk.ptr"; }; -> cp /etc/bind/db.local /etc/bind/smk.local cp /etc/bind/db.127 /etc/bind/smk.ptr -> nano /etc/bind/smk.local *Semua localHost diganti smk.com @ @ www mail IN IN IN IN NS A A A smk.com 192.168.103.1 192.168.103.1 192.168.103.1

-> nano /etc/bind/smk.ptr *Semua localHost diganti smk.com @ IN NS smk.com @ IN PTR smk.com 1 IN PTR www.smk.com 1 IN PTR mail.smk.com -> nano /etc/resolv.conf -> /etc/init.d/bind9 restart -> cek nslookup

4. Setting Web -> apt-get install apache2 php5 -> nano /etc/apache/sites-enabled/000-Default <VirtualHost *:80> Server Admin Server Name Server Alias Document Root </Virtualhost> <Virtualhost *:80> Server Admin admin@smk.com Server Name smk.com Server Alias mail.smk.com Document Root /usr/share/squirrelmail </VirtualHost> -> etc/init.d/apache2 restart nb: jangan lupa buat direktori (WEB1) dulu & membuat index.php 5. Setting mail Server ->apt-get install postfix courier.* squirrelmail ->nano /etc/postfix/main.cf Edit file -> tambah ->home_mailbox = Maildir/ -> dpkg-reconigure postfix -> Maildirmake /etc/skel/Maildir -> adduser nama user admin@smk.com smk.com www.smk.com /home/WEb1