Pages

Kamis, 28 April 2011

DNS SERVER di UBUNTU 8.04


#ifconfig eth0 192.168.1.14
#apt-cdrom add
#apt-get install bind9
#cd /etc/bind
#pico named.conf.local
Tambahkan pada baris akhir
Zone”ipol.com” {
            Type master;
            File”/etc/bind/db.i”;
};
Zone”1.168.192.in-addr.arpa” {
            Type master;
            File”/etc/bind/db.p”{
};
Simpan dengan ctrl+o,keluar dengan ctrl+x
#cp db.local db.i
#cp db.127 db.p
#pico db.i
            ;
            ;BIND data file for local loopback interface
            ;
            $TTL    604800
            @         IN        SOA     localhost. Root.localhost. (
                                    2          ; Serial
                                    604800  ; Refresh
                                    86400   ; Retry
                                    2419200; Expire
                                    604800) ;Negative Cache TTL
            ;
@         IN        Ns                    ipol.com.
@         IN        A                     192.168.1.14
www    IN        CNAME                       @
Simpan dengan ctrl+o,keluar dengan ctrl+x
#pico db.p
;BIND data file for local loopback interface
;
$TTL    604800
            @         IN        SOA     localhost. Root.localhost. (
                                    1          ; Serial
                                    604800  ; Refresh
                                    86400   ; Retry
                                    2419200; Expire
                                    604800) ;Negative Cache TTL
            ;
@         IN        NS       ipol.com.
@         IN        PTR     ipol.com.
Simpan dengan ctrl+o,keluar dengan ctrl+x
#/etc/init.d/bind9 restart
#ping ipol.com

Harap maklum bila penulisan ada yang salah.......makasih

DHCP SERVER di UBUNTU 8.04


#apt-get install dhcp3-server
#pico /etc/dhcp3/dhcpd.conf
            # option definition common to all supported networks…
            # option domain-name “damai.co.cc;
            # option domain-name-servers damai.co.cc;

# if this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# A slightly different configuration for an internal subnet.
  subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.15 192.168.1.20;
  option domain-name-servers 192.168.1.14;
  option domain-name “ipol.com”;
  option routers 192.168.1.14;
  option broadcast-address 192.168.1.255
  default-lease-time 600;
  max-lease-time 7200;
}
Simpan dengan ctel+o,keluar dengan ctrl+x
#/etc/init.d/dhcp3-sever restart


Harap maklum bila penulisan ada yang salah......makasih 

WEB SERVER di UBUNTU 8.04


# apt-get install apache2 php5
# pico /etc/apache2/sites-available/default

            <VirtualHost *:80>
            ServerAdmin webmaster@ipol.com
Simpan dengan ctrl+o, keluar ctrl+x
# /etc/init.d/apache2 restart

#pico /var/www/index.html

PERINTAH DASAR UBUNTU



/bin : aplikasi biner penting
/boot : lokasi berkas konfigurasi untuk boot
/dev : berkas peranti (device)
/etc : berkas konfigurasi,skrip startup,dll
/home : directory pangkal untuk pengguna
/lib : libraries yang diperlukan oleh system
/mnt : untuk me-mount sistem berkas
/opt : tempat lokasi untuk menyimpan aplikasi tambahan
/proc : direktori dinamis khusus yang menangani informasi mengenai kondisi system termasuk proses yang sedang berjalan
/root : direktorin pangakal untuk root
/sbin : sistem biner penting
/sys : mangandung informasi mengenai system
/tmp : berkas sementara
/usr : tempat aplikasi dan berkas yang sering digunakan pengguna
/var : berkas variable seperti log dan database
Ls : melihat daftar berkas
Mkdir : membuat direktori
Cd : mengubah directory anda saat ini ke direktori yang anda tentukan
Cp : menyalin berkas yang anda tentukan
Cp –r : akan menyalin setiap direktori yang anda tentukan
Rm : menghapus berkas atau direktori
Rm –rf : akan menghapus setiap direktori yang anda tentukan
Mv : akan mengganti nama atau memindahkan setiap berkas yang anda tentukan
Ps : melihat proses
Top : melihat task ala linux
Df –f : melihat sisa kapasitas hardisk
Du –h : melihat presentase pemakaian hardisk
Clear : membersihkan layer diterminal
Hostname : menampilkan nama computer
Who : melihat nama login
Cat : membuka file (sekali lewat )
More : membuka isi file (per halaman )
Less : membuka isi file (bisa scrool up & scrool down)
Info : berisi perintah-perintah di shell linux
Man : melihat manual book dari perintah di linux
Poweroff : mematikan computer
Reboot : mematikan computer
Uptime : melihat sudah berapa lama komputer dinyalakan
History : melihat perintah apa saja yang pernah diketik
Date : melihat tanggal
Cal : melihat kalender
Ifconfig : melihat konfigurasi jaringan
Sudo : untuk menjalankan perintah sebagai root
Sudoedit : perintah ini mengijinkan anda untuk mengedit sebuah file sabagai root
Su : untuk mengubah hak akses dari user
Visudo : memastikan bahwa ada seorang saja yang sedang mengedit  dalam suatu waktu

Senin, 11 April 2011

KONFIGURASI DNS DI REDHAT 9.0

berikut langkah2 ee.............

Pertama-tama Buat IP Address terlebih dahulu dengan perintah
#ifconfig eth0 (IP Address) missal:192.168.10.1
Untuk mengedit tekan INSERT dan untuk menyimpan tekan Esc lalu :wq 
1. Masuk konfigurasi named dengan perintah :
# vi /etc/named.conf
2. Buat zone dan file zone…

//generated by name-bootconfig.pl
Option {
Directory”/var/named”;
};
//a caching only nameserver config
//
Controls {
Inet 127.0.0.1 allow {localhost;}
Keys {rndckey;};
};
Zone”.” IN {
Type hint ;
File”named.ca”;
};
Zone”localhost” IN {
Type master;
File”localhost.zone”;
Allow-update{none;};
};
Zone”0.0.127.in-addr.arpa” IN {
Type master;
File”named.local”;
Allow-update{none;};
};
Zone”tkj.com” {
Type master;
File”tkj.com.zone”;
};
Zone”10.168.192.in-addr.arpa” {
Type master;
File” 10.168.192.in-addr.arpa.zone”;
};
Include “/etc/rndc.key” ;

3. Masuk direktori penyimpanan named :
# cd /var/named/
4. #cp localhost.zone tkj.com.zone
5. #cp named.local 10.168.192.in-addr.arpa.zone
6. #vi tkj.com.zone
$TTL 365D
@ IN SOA tkj.com. root.localhost (
36 ;serial
28800 ;refresh
7200 ;retry
3600 ;expire
86400 ;ttl )
IN NS tkj.com.
@ IN A 192.168.10.1
www IN CNAME tkj.com.
7. #vi 10.168.192.in-addr.arpa.zone
$TTL 365D
@ IN SOA tkj.com. root.localhost (
36 ;serial
28800 ;refresh
7200 ;retry
3600 ;expire
86400 ;ttl )
IN NS tkj.com.
1 IN PTR tkj.com.
8. #vi /etc/resolv.conf
search tkj.com.
name server 192.168.10.1
9. Restart Named
#service named restart

10. Pastikan konfigurasi yg anda buat sudah berhasil/blum,dg perintah:
#ping www.tkj.com
PING www.tkj.com (192.168.10.1) from192.168.10.1: 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_seq=0 ttl=255 time=223 usec
64 bytes from 192.168.10.1: icmp_seq=1 ttl=255 time=223 usec
64 bytes from 192.168.10.1: icmp_seq=2 ttl=255 time=242 usec

--- www.tkj.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
Untuk menghentikan Ctrl+Z