Server: Konfigurasi Interface Server Debian 7

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

2017 Copyright © Andi Kasyadi

SERVER
KONFIGURASI INTERFACE SERVER DEBIAN 7
#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

ctrl + o untuk simpan


ctrl + x untuk keluar
#/etc/init.d/networking restart

CEK IP ADDRESS

#ifconfig

#ip a

ISI DNS

#nano /etc/resolv.conf

search smk.com
nameserver 192.168.10.1

KONFIGURASI DNS SERVER


#apt-get install bind9

#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";
};

#cp db.local db.smk

#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

#cp db.smk rev.192

#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

You might also like