ASSALAMU'ALAIKUM WR.WB
WELCOME TO VISIT MY BLOG AND DON'T FORGET TO COMMENT MY BLOG,BECAUSE YOUR COMMENT IS MY INSPIRATION......

SETTING IP ADDRESS DAN DNS SERVER DEBIAN LENNY 5

SETTING IP ADDRESS DEBIAN LENNY 5


1 Sebelum masuk ke DNS SERVER kita setting dulu ip addressnya terlebih dahulu yaaaaaa..... caranaya masuk terlebih dahulu ke root caranya seperti ini……

# su

(masukkan password root)



2 Langsung aja setting ip addressnya dengan cara seperti ini:
# vim /etc/network/interfaces

Maka akan muncul gini……………
# 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
Allow-hotplug eth0
Iface eth0 inet static
Address : 192.168.0.1
Netmask : 255.255.255.0
Network : 192.168.0.0
Broadcast: 192.168.0.255
Gateway : 192.168.0.1
# dns-* options are implemented by the resolvconf package if installed
Dns-nameservers 192.168.0.1
Dns-search abdul.com


-->Setelah it JANGAN LUPA DI SAVE YA………. caranya mudah kok,emmm tekan Esc : wq

Untuk lebih cepat pakai cara gini --> ifconfig 192.168.0.1/24

Kemudian jangan lupa di -->ifup eth0

Setelah sudah,jangan lupa di restart dengan perintah kayak gini…….
# /etc/init.d/networking restart

DNS SERVER

1 Install paket buat bikin DNS dulu nama paketnya adalah BIND9. Ketikkan perintah seperti ini:
# apt-get install bind9

2 Kalau sudah masulk ke folder /etc/bind :
# cd /etc/bind

Setelah masuk didalamnya ada beberapa file dan folder seperti berikut:
db.0 db.255 db.local named.conf named.conf.option zones.rfc1918
db.127 db.empty db.root named.conf.local rndc.key


3 kemudian edit file named.conf,dengan cara sebagai berikut :
# vim named.conf

maka akan muncul teks yang seperti dibawah ini :
// This is the primary configuration file for the BIND DNS server named.
//
// please read /usr/share/doc/bind9/README.Debian.gz for informationon the
// structure of BIND configuration files in debian, *BEFORE* you customize
//this configuration file.
//
// If you are just adding zones, please do that in
/etc/bind/named.conf.local
Include “/etc/bind/named.conf.option”;
// prime the server with knowledge of the root servers
zone “.” {
type hint;
file “/etc/bind/db.root”;
};
// be authoritative for the localhost forward and revers 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”;
};

zone “abdul.com” {
type master;
file “/etc/bind/db.nama”
};


zone “192.in-addr.arpa” {
type master;
file “/etc/bind/db.ip”;
};


Include “/etc/bind/named.conf.local”;
-->Setelah it JANGAN LUPA DI SAVE YA………. caranya mudah kok,emmm tekan Esc : wq

4 kemudian copy file db.local ke db.nama,caranya gini……
# cp db.local db.nama

5 setelah it edit db.namanya,dengan cara gini……
# vim db.nama

Maka akan muncul teks seperti ini:
;
; BIND data file for local loopback interfaces
;
STTL 604800
@ IN SOA abdul.com. root.abdul.com
(





;
@ IN NS abdul.com.
@ IN A abdul.com.
@ IN AAAA : :1
www IN CNAME abdul.com.
mail IN CNAME abdul.com.


-->Setelah it JANGAN LUPA DI SAVE YA………. caranya mudah kok,emmm tekan Esc : wq

6 Selanjutnya kemudian copy file db.127 ke db.ip,caranya gini……
# cp db.127 db.ip
7 setelah it edit db.namanya,dengan cara gini……
# vim db.ip
Maka akan muncul teks seperti ini:
;
; BIND reverse data file for local loopback interfaces
;
STTL 604800
@ IN SOA abdul.com. root.abdul.com.
(
2 ;Serial
604800 ;Refresh
86400 ;Retry
2419200 ;Expire
604800 ;Negativecache TTL
;
@ IN NS abdul.com.
1 IN PTR abdul.com.

Setelah it JANGAN LUPA DI SAVE YA………. caranya mudah kok,emmm tekan Esc : wq
8 Restartlah paket bind pake perintah kayak gini yaaaaaa……………….
# /etc/init.d/bind9 restart
kalau udah cek hasilnya dengan perintah gini……
# nslookup abdul.com
kalau udah jalan maka akan muncul pesan seperti9 di bawah ini…………
Server: 192.168.0.1
Address: 192.168.0.1#xx

Name: abdul.com
Address: 192.168.0.1

DNS jalankan dan sukses….tp kalau belum coba masuk ke resolf.conf,dengan cara mengeditnya …..
# vim /etc/resolf.conf
search :abdul.com
Name Server: 192.168.0.1

Setelah it JANGAN LUPA DI SAVE YA………. caranya mudah kok,emmm tekan Esc : wq



AKHIRNYA DNS SERVER GUE JADIIIIIII........


0 Response to "SETTING IP ADDRESS DAN DNS SERVER DEBIAN LENNY 5"

Posting Komentar

~~~~~~~bye-bye~~~~~~~~
Powered By Blogger