Arsip untuk September, 2007

Reverse DNS

30 September 2007

[root@pc19 ~]# vi /usr/local/bind9/etc/named.conf

options {
directory “/usr/local/bind9/var/named”;
};

zone “.” IN {
type hint;
file “named.ca”;
};

zone “sya.oke” IN {
type master;
file “sya.oke”;
allow-update { none; };
};

zone “sya.oke” IN {
type master;
file “sya.oke”;
allow-update { none; };
};

zone “sya.oke” IN {
type master;
file “sya.oke”;
allow-update { none; };
};

zone “0.168.192.in-addr.arpa” IN {
type master;
file “sya.arpa”;
allow-update { none; };
}; (lagi…)

Delegasi zones & Slave domain

30 September 2007

[root@pc19 ~]# vi /usr/local/bind9/etc/named.conf
options {
directory “/usr/local/bind9/var/named”;
};
#       allow-query { 192.168.0.0.0/24;
#};

zone “.” IN {
type hint;
file “named.ca”;
};
/*
#zone “localhost” IN {
#       type master;
#       file “localhost.zone”;
#       allow-update { none; };
#};

#zone “0.0.127.in-addr.arp” IN {
#       type master;
#       file “named.local”;
#       allow-update { none; };
#};
*/
zone “sya.oke” IN {
type master;
file “sya.oke”;
allow-update { none; };
};

//delegasi zones

zone “sub1.carvil.org” IN {
type master;
file “sub1.carvil.org”;
allow-update { none; };
};
zone “sub.salman.net.id” IN { (lagi…)

DNS @Ubuntu Server 7.04

19 September 2007

Konfigurasi

#sudo vim /etc/ bind/named.conf ===>jika instal bind-nya dari source code (optional)
#sudo vim /etc/bind/named.conf.local

zone “sya.oke” {
type master;
file “/etc/bind/db.sya.oke”;
};

#sudo vim /etc/bind/named.conf.options ===>jika ingin mengaktifkan bind sebagai forwarders (optional)

#sudo vim /etc/bind/db.sya.oke

$TTL 604800
@ IN SOA sya.oke. root.sya.oke. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@                    IN             NS         sya.oke.
@                    IN             A            192.168.3.12
www             IN             A            192.168.3.12

#dig sya.oke @192.168.3.12, jika error ada cek log-nya

# netstat -tan, cek service bind port 53 kondisi listen

#tail -f /var/log/syslog

Setting dari PC client

#echo “nameserver 192.168.3.12 >> /etc/resolv.conf

cek dari PC client, buka browser ketik “sya.oke”

oke deh sekarang serasa punya domain sendiri…

-sya-