KONFIGURASI INTERFACE SERVER DEBIAN 5
#nano /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
#/etc/init.d/networking restart
CEK IP ADDRESS
#ifconfig
ISI DNS
#nano /etc/resolv.conf
search smk.net
nameserver 192.168.10.1
KONFIGURASI DNS SERVER
#apt‐get install bind9
#cd /etc/bind
#nano named.conf
zone "smk.net" {
type master;
file "/etc/bind/smk.db";
};
zone "10.168.192.in‐addr.arpa" {
type master;
file "/etc/bind/192.168.10.rev";
};
#cp db.local smk.db
#nano smk.db
$TTL 604800
@ IN SOA server1.smk.net. root.localhost. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS smk.net.
@ IN A 192.168.10.1
server1 IN A 192.168.10.1
www IN CNAME server1
#cp smk.db 192.168.10.rev
#nano 192.168.10.rev
$TTL 604800
@ IN SOA server1.smk.net. root.localhost. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS smk.net.
@ IN A 192.168.10.1
1 IN PTR smk.net.
RESTART DNS
#/etc/init.d/bind9 restart
Cek DNS
#nslookup www.smk.net
#nslookup 192.168.10.1
#nslookup smk.net
Tidak ada komentar:
Posting Komentar