Professional Documents
Culture Documents
DNS Server
DNS Server
Mengganti IP Server
Nano /etc/network/interfaces
Auto eth0
Iface eth0 inet static
Address 192.168.56.3
Netmask 255.255.255.0
Gateway 192.168.56.1
zone "56.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
4. Nano /etc/bind/db.heri
@ IN SOA heri.net. root.heri.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS heri.net.
@ IN A 192.168.56.3
www IN A 192.168.56.3
5. nano /etc/bind/db.192
@ IN SOA heri.net. root.heri.net. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS heri.net.
1 IN PTR heri.net.
1 IN PTR www.heri.net.
6. Nano /etc/resolv.conf
nameserver 192.168.56.3
domain heri.net
search heri.net
7. nano /etc/hosts
127.0.0.1 localhost
127.0.1.1 debian
192.168.56.3 heri
8. /etc/init.d/networking restart