• debian 5 "lenny"

    DNS SERVER Debian Lenny

    1. apt-get remove exim4-base
    2. apt-get install apache9 bind9 squid vsftpd postfix courier-pop courier-imap squirrelmail php5
    3. cd /etc/bind/
    4. pico named.conf
    5. (ctrl+v 2x) ... (tanda atas 2x) .. (ctrl+K4x) .. (ctrl+u 8x)
    6. (ctrl+w)..(ctrl+r)..(search to replace..(replace with.) (1=No .. dst=yes)
    7. (ctrl+e) .. hapus/ganti ekstensi .db(pada zone paling bawah/dasar), ganti zone seperti contoh zone"1.1.168.192.in-addr.arpa"{
    8. ganti zone kedua menjadi contoh zone "linux.org"
    9. save konfigurasi .. (ctrl+x) (y)
    10. bikin database DNS pico www.db(misal)
    11. (ctrl+R) (ctrl+T) pilih db.local
    12. (ctrl+w) (ctrl+R) serach to replace:"localhost" .. replace with "lks.sch.id" atau terserah apa nama web kita, misal "unix.linux.org"
    13. ubah konfigurasi
        @    IN    A    127.0.0.1    =>    @    IN    A    192.168.1.1(ip computer/DNS server)
    14. (ctrl+k) (ctrl+u 3x) (sesuai keperluan unutk blok situs)
    15. ubah konfigurasi baris kedua menjadi;
        @    IN    MX10    mail.linux.org
    16. konfigurasi baris ketiga
         @    IN    NS    unix.playboy.com   
    17. (ctrl+V 1x) (enter) . . tambah konfigurasi:
         www    IN    A    192.168.1.1
        mail    IN    CNAME    www
    18. save konfigurasi ...
    19. pico smk.db
    20. (ctrl+r) (ctrl+t) pilih db.255
    21. (ctrl+w) (ctrl+r) search to replace:"localhost" .. replace with:"unix.linux.org" ketik/tekan A
    22. tambahkan konfigurasi
        @    IN    NS    unix.linux.org
        @    IN    A    192.168.1.1
    23. konfigurasi ini dibawah konfigurasi diatas:
        1    IN    PTR    unix.linux.org
        "1"merupakan host-ID server
    24. save..
    25. restart bind /etc/init.d/bind9/restart
    uji koneksi dengan 'ping' ping www.linux.org ping mail.linux.org


    WEB SERVER

    1. pico /etc/apache2/sites-available/default/
    2. (ctrl+e)
    3. lakukan konfigurasi :
        name virtual host * => name virtual host linux.org (nama domain)
        (virtual host *) => (virtual host 192.168.1.1)
        server admin webmaster@localhost => serveradmin admin@linux.org
                    }
                    }
                    }
        Document root /var/www/=>document root/home/web/
                    }
                    }
                    }
        (directory /var/www/) => (directory /home/web/)
    4. lakukan blok pada html default apache:
        #redirectmatch ^/$ /apache2-default/
    5.disable direktori website dengan alasan security
        #Alias /doc/  "usr/share/doc/"
        #(directory)  "usr/share/doc/")
        #    options indexes.....
        #    }
        #    }   
        #    }
        #    }
        #(/directory)
    6. save...
    7. buat direktori websites pada lokasi sesuai dengan direktori root:
        mkdir /home/web
    8.buat sebuah file html untuk dijadikan website percobaan pada direktori web:
        pico /home/web/index.html
    9. buat sebuah script html sederhana:
       
       
          WEB SERVER OYEY
       
       

    mabals euy


       
    10. save kofigurasi script
    11. buat script php sederhanauntuk pengujian php
         pico /home/web/info.php
         contoh :
    13. save..
    14. restart apache /etc/init.d/apache2 restart
    15. uji web dengan perintah :
        w3m www.linux.org


    DHCP SERVER

    1. apt-get install dhcp3-server
    2. pico /etc/dhcp3/dhcpd.conf
    3. ubah konfigurasi syntax atau hilangkan tanda # pada script dibawah ini:
        A slightly different configuration for an internal subnet..
        subnet ...(masukan IP network dan netmask pada baris ini)
        range ... (masukan rentang IP address yang akan disewakan pada jaringan)
        option domain-name-servers (masukan IP DNS server)
        option domain-name (masukan domain-name)
        option router    (masukan IP router)
        option broadcast-address (masukan IP broadcast)
        default-lease-time    (konfigurasi waktu sesuai kebutuhan)
        max-lease-time        (konfigurasi batas waktu penyewaan IP)
    4. save konfigurasi(ctrl+x ,y ,enter)
    5. restar dhcp /etc/init.d/dhcp3server restart
       

1 komentar:

Posting Komentar