Professional Documents
Culture Documents
Server: Konfigurasi Interface Server Debian 7
Server: Konfigurasi Interface Server Debian 7
Server: Konfigurasi Interface Server Debian 7
SERVER
KONFIGURASI INTERFACE SERVER DEBIAN 7
#nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
CEK IP ADDRESS
#ifconfig
#ip a
ISI DNS
#nano /etc/resolv.conf
search smk.com
nameserver 192.168.10.1
#cd /etc/bind
#cp named.conf.default-zones named.conf.local
#nano named.conf.local
zone "smk.com" {
type master;
2017 Copyright © Andi Kasyadi
file "/etc/bind/db.smk";
};
zone "10.168.192.in-addr.arpa" {
type master;
file "/etc/bind/rev.192";
};
#nano db.smk
$TTL 604800
@ IN SOA server.smk.com. root.localhost. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS smk.com.
@ IN A 192.168.10.1
server IN A 192.168.10.1
www IN CNAME server
#nano rev.192
$TTL 604800
@ IN SOA server.smk.com. root.localhost. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS smk.com.
@ IN A 192.168.10.1
1 IN PTR smk.com.
2017 Copyright © Andi Kasyadi
RESTART DNS
#/etc/init.d/bind9 restart
Cek DNS
#nslookup www.smk.com
#nslookup 192.168.10.1
#nslookup smk.com