#nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.100.1
netmask 255.255.255.0
#/etc/init.d/networking restart
#nano /etc/resolv.conf
search yourdomain.com
nameserver 192.168.100.1 {ip Address}
nameserver 127.0.0.1
#apt-get install bind9
#cd /etc/bind/
#nano named.conf
{ Named.conf }
zone "newdomain.com" {
type master;
file "/etc/bind/newdomain.db";
};
zone "100.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.rev";
};
CONTOH :
zone "smk.org" {
type master;
file "/etc/bind/smk.db";
};
zone "100.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.rev";
};
#cp db.local newdomain.db
#nano newdomain.db
(domain.db)
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA yourdomain.com. root.yourdomain.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Default TTL
;
IN NS yourdomain.com.
@ IN A 192.168.100.1
www IN A 192.168.100.1
dns IN A 192.168.100.1
#cp smk.db 192.rev
#nano 192.rev
{ 192.rev}
;
; BIND reverse data file for 192.168.100.0 {ip network}
;
$TTL 604800
@ IN SOA yourdomain.com. root.yourdomain.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Default TTL
;
IN NS yourdomain.com.
@ IN A 192.168.100.1
1 IN PTR www.yourdomain.com.
1 IN PTR dns.yourdomain.com.
#/etc/init.d/bind9 restart
Kemudian Cek Konfigurasinya Dengan Perintah Di Bawah Ini :
#nslookup www.newdomain.com
#nslookup newdomain.com
#nslookup 192.168.100.1

0 komentar:
Post a Comment