1 Sebelum masuk ke DNS SERVER kita setting dulu ip addressnya terlebih dahulu yaaaaaa..... caranaya masuk terlebih dahulu ke root caranya seperti ini……
(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
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
Untuk lebih cepat pakai cara gini -->
Kemudian jangan lupa di -->
Setelah sudah,jangan lupa di restart dengan perintah kayak gini…….
1 Install paket buat bikin DNS dulu nama paketnya adalah BIND9. Ketikkan perintah seperti ini:
2 Kalau sudah masulk ke folder /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 :
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”;
};
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
4 kemudian copy file db.local ke db.nama,caranya gini……
5 setelah it edit db.namanya,dengan cara gini……
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
6 Selanjutnya kemudian
7 setelah it edit db.namanya,dengan cara gini……
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
8 Restartlah paket bind pake perintah kayak gini yaaaaaa……………….
kalau udah cek hasilnya dengan perintah gini……
kalau udah jalan maka akan muncul pesan seperti9 di bawah ini…………
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 …..
search :abdul.com
Setelah it JANGAN LUPA DI SAVE YA………. caranya mudah kok,emmm tekan
0 Response to "SETTING IP ADDRESS DAN DNS SERVER DEBIAN LENNY 5"
Posting Komentar