langsung ajah ke TKP
[/code]
pertama install dulu bind nya..
Quote:# yum install bind caching-nameserver
setelah itu kita edit file konfigurasi bind
Quote:# vi /etc/named.rfc1912.zones
trus tambahin scrip ini di ahir baris
Quote:zone "tresna-widiyaman.sch.id" IN { #nama domain
type om;
file "tresna.zone"; #namanya bisa apasaja
allow-update {none; };
};
trus kita bikin tresna.zone yg diambil dr file localhost.zone
Quote:# cp /var/named/chroot/var/named/localhost.zone /var/named/chroot/var/named/tresna.zone
terus kita edit file tresna.zone
Quote:# cd /var/named/chroot/var/named/
# vi tresna.zone
trus isiin kaya di bawah ini
Quote:$TTL 86400
@IN SOA ns.tresna-widiyaman.sch.id. admin.tresna-widiyaman.sch.id
. (
42
3H
15M
1W
1D )
IN NS ns.tresna-widiyaman.sch.id
IN MX 10 mail.tresna-widiyaman.sch.id. #jika punya mail server
IN A 192.168.35.1 #ip address server
Ns IN A 192.168.35.1
www IN A 192.168.35.1
mail IN A 192.168.35.1 #ip ini bisa diganti jika berbeda
ubah kepemilikan file tresna.zone menjadi root group named
Quote:# chown root.named tresna.zone
edit file /etc/named.caching-namedserver.conf
Quote:# vi /etc/named.caching-namedserver.conf
trus ganti semua isinya sama yang di bawah ini
Quote:-listen-on port 53 {any: };
-listen-on-v6 port 53 {any: };
-allow-query {any; };
-match-destinations {any: };
trus restart deh named nya
Quote:# /etc/init.d/named restart
sekarang tinggal ujicoba
Quote:# nslookup tresna-widiyaman.sch.id
kalau hasilnya kaya di bawah ini berarti udah berhasil
Quote:Server: 192.168.35.1
Address: 192.168.35.1#53
Non-authoritative answer:
Name: tresna-widiyaman.sch.id
Address: xx.xx.xx.167
semoga bermanfaat
0 komentar:
Post a Comment