Buat file baru dengan nama named.conf pada direktori /var/named/chroot/etc
vim /var/named/chroot/etc/named.conf
Isi file tersebut dengan
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
allow-transfer {203.130.196.5/32; 203.130.196.6/32;};
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "localhost" IN {
type master;
allow-update { none; };
};
zone "smkbisa.net" IN {
type master;
file "/var/named/smkbisa.net.zone";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "/var/named/0.168.192.rev";
allow-update { none; };
};
include "/etc/rndc.key
Buat file smkbisa.net.zone di direktori /var/named/chroot/var/named
Isi dengan
$TTL 86400
@ IN SOA smkbisa.net. root.smkbisa.net. (
100 ; serial1H ; refresh
1M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS ns1.smkbisa.net.
@ IN A 192.168.0.1
ns1 IN A 192.168.0.1
@ IN MX 10 mail.smkbisa.net.
mail IN A 192.168.0.1
www IN A 192.168.0.1
Buat file 0.168.192.rev di direktori /var/named/chroot/var/named
Isi dengan
$TTL 86400
@ IN SOA smkbisa.net. root.smkbisa.net. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS ns1.smkbisa.net.
1 IN PTR server.smkbisa.net.
Jalankan service named
service named start
Jalankan service named ketika start up
chkconfig named on
Tidak ada komentar:
Posting Komentar