1 Setting Network
1. Untuk membuat server langkah pertama harus setting network, yaitu dengan cara mengedit file interface pada directory /etc/network/
# nano /etc/network/interfaces
The primary networkinterface allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
( save dengan menekan tombol CTRL + X kemudian tekan Y Enter)
2. Setelah itu menamba IP DNS Address pada file resolv.conf di directory /etc/
# nano/etc/resolv.conf
nameserver 192.168.10.1
3. Jika semua selesai restart
# /etc/init.d/networking restart
4. Check
# ifconfig
1.2 Setting DNS Server
1. Untuk setting DNS server yang di butuhkan adalah paket BIND9
# apt-get install bind9
lalu ketik :
# cd /etc/bind
2. Langkah kedua yaitu menyeting file named.conf pada directory /etc/bind/
debian:~# nano /etc/bind/named.conf zone "tkj.com" {
type master;
file "resolve";
};
zone "10.168.192.in-addr.arpa" {
type master;
file "foreward";
};
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };
3. Setelah mengedit file named.conf, buat file resolve( untluk menerjemahkan nama keIP ADDRESS) pada folder /var/cache/bind
4. debian:~# nano /var/cache/bind/resolve
@ IN SOA ns.tkj.com. admin.tkj.com. (
1 ;Serial
604800 ;Refresh
86400 ;Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS ns.tkj.com.
IN MX 10mail.tkj.com. IN NS ns.tkj.com.
ns IN A 192.168.10.1 www IN CNAME ns.tkj.com. mail IN CNAME ns.tkj.com. ftp IN CNAME ns.tkj.com.
5. Setelah itu membuat file foreward pada directory /var/cache/bind (untuk menerjemahkan IP ADDRESS ke ke nama )
debian:~# nano /var/cache/bind/foreward
@ IN SOA ns.tkj.com. admin.tkj.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative CacheTTL IN NS ns.tkj.com.
1 IN PTR ns.tkj.com.
6. Setelah semua sudah selesai restart service bind9
debian:~# /etc/init.d/bind9 restartStopping domain name service...:bind. Starting domain name service...:bind. debian:~#
7. test domain dengan nslookup
debian:~# nslookup
> www.tkj.com
Server: 192.168.10.1
Address: 192.168.10.1#53
www.tkj.com canonical name = ns.tkj.com.Name: ns.tkj.com
Address: 192.168.10.1
0 comments:
Post a Comment