Jumat, 26 November 2010

debian4


1.     KONFIGURASI NETWORK CARD
·         Edit file /etc/network/interfaces
#nano /etc/network/interfaces

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.1
        netmask 255.255.255.240
        network 192.168.1.0
        broadcast 192.168.1.15
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
        dns-search server.net

>>untuk keluar dan save tekan tombol ctrl+x >y (yes)


>Konfigurasi Hosts
#nano /etc/hosts

127.0.0.1         localhost
192.168.1.1     server.net      server

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

>>untuk keluar dan save tekan tombol ctrl+x >y (yes)

#nano /etc/resolv.conf

search server.net
domain server.net
nameserver 192.168.1.1

>>untuk keluar dan save tekan tombol ctrl+x >y (yes)

>kemudian restart network dengan cara:
#/etc/init.d/networking restart
Reconfiguring network interfaces...done.


bafadhiro :~# /etc/init.d/networking restart

2.     KONFIGURASI NAME SERVER
File /etc/hosts ini berisi daftar penerjemahan nama mesin ke alamat IP mesin yang bisa digunakan juga untuk
melakukan penerjemahan slsmst IP ke nama. Dengan memiliki file ini, mesin Linux dapat menggunakan nama yang
lebih mudah diingat untuk memanggil atau mengakses mesin lain dalam jaringan,
·         Edit file /etc/ hosts
bafadhiro :~# editor /etc/ hosts
127.0.0.1         localhost
192.168.0.1     bafadhiro.alideb.com            bafadhiro

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

3.     KONFIGURASI IP ADDRESS
·         Edit file /etc/resolv.conf
bafadhiro :~# editor /etc/resolv.conf
search alideb.com
nameserver 192.168.0.1

4.     DNS
Domain Name Server (DNS) digunakan untuk translasi dari IP address ke nama host yang lebih mudah diingat atau sebaliknya.
·         Manginstall DNS
bafadhiro :~# apt-get install bind

·         Menambah scripts pada file /etc/bind/named.conf atau pada file /etc/bind/named.conf.local untuk membuat zone forward dan zone reverse.
anda konfigurasi pada
bafadhiro :~# editor /etc/bind/named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind/README.Debian for information on the
// structure of BIND configuration files in Debian for BIND versions 8.2.1
// and later, *BEFORE* you customize this configuration file.
//

include "/etc/bind/named.conf.options";

// reduce log verbosity on issues outside our control
logging {
            category lame-servers { null; };
            category cname { null; };
};

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

// add local zone definitions here
include "/etc/bind/named.conf.local";
atau anda konfigurasi pada
bafadhiro :~# editor /etc/bind/named.conf. local
//
// Add local zone definitions here.

Tidak ada komentar:

Posting Komentar