Untuk setting nama domain diletakkan pada file named.conf,
// If you are just adding zones, please do that in /etc/bind/named.conf.localisi named.conf.options biarkan default, atau tanpa pakai ipv6 bisa edit ini.
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
auth-nxdomain no; # conform to RFC1035isi named.conf.local (forwarders adalah dns forwardmu mau diteruskan kemana)
listen-on-v6 { none; };
};
zone "cahaya.computer.ee.its.ac.id" {sekarang kita buat isi name server nya, db.cahaya.computer.ee.its.ac.id.local-fwd (forward) dan db.cahaya.computer.ee.its.ac.id.local-rev (reverse)
type master;
file "/etc/bind/db.cahaya.computer.ee.its.ac.id.local-fwd";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.cahaya.computer.ee.its.ac.id.local-rev";
};
zone "." IN {
type forward;
forwarders { 10.122.1.1; 202.46.129.2; };
};
# zona lainnya
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
isi db.cahaya.computer.ee.its.ac.id.local-fwd
; BIND data file for zone "cahaya.computer.ee.its.ac.id" [via] Internal viewisi db.cahaya.computer.ee.its.ac.id.local-rev
;
$TTL 604800
@ IN SOA ns.cahaya.computer.ee.its.ac.id. root.cahaya.computer.ee.its.ac.id. (
2012031400 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.cahaya.computer.ee.its.ac.id.
@ IN MX 5 mail.cahaya.computer.ee.its.ac.id.
@ IN A 192.168.0.1
; ip anak-anak dibawah e cahaya
coyo-pc IN A 192.168.0.2 ; kompi coyo
hamdan-pc IN A 192.168.0.3 ; kompi hamdan
mail IN A 192.168.0.1
ns IN A 192.168.0.1
umek-pc IN A 192.168.0.1
; BIND data file for REVERSE zone "0.168.192.in-addr.arpa"restart service dan cek log
;
$TTL 604800
@ IN SOA ns.cahaya.computer.ee.its.ac.id. umek.cahaya.computer.ee.its.ac.id. (
2012031400 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS ns.cahaya.computer.ee.its.ac.id.
@ IN MX 5 mail.cahaya.computer.ee.its.ac.id.
;anak-anak
2 IN PTR coyo-pc.cahaya.computer.ee.its.ac.id.
3 IN PTR hamdan-pc.cahaya.computer.ee.its.ac.id.
1 IN PTR ns.cahaya.computer.ee.its.ac.id.
1 IN PTR umek-pc.cahaya.computer.ee.its.ac.id.
1 IN PTR mail.cahaya.computer.ee.its.ac.id.
sudo /etc/init.d/bind9 restartservice running artinya berhasil.
sudo tail -f /var/log/syslog
mau cek lagi silahkan di tes di client, contoh kasus saya, di coyo-pc, nslookup
No comments:
Post a Comment
have a question, just spill it :D