Pada terminal, masukkan perintah berikut untuk menginstal dns:
$ sudo pico /etc/bind/named.conf.options
Edit /etc/bind/named.conf.local :
$ sudo pico /etc/bind/db.192
Untuk membuat DNS master dan Slave, contoh :
DNS Master IP Address 192.168.50.1
DNS Slave IP Address 192.168.50.111
Pada MASTER:
edit /etc/bind/named.conf.local:
Edit /etc/bind/named.conf.local :
edit /etc/resolv.conf :
$ sudo pico /etc/resolv.conf
$ sudo apt-get install bind9Untuk pengujian dan troubleshooting masalah DNS adalah paket dnsutils. Untuk menginstal dnsutils masukkan berikut ini:
$ sudo apt-get install dnsutilsEdit /etc/bind/ named.conf.options : (tambahkan DNS IP ISP Anda)
$ sudo pico /etc/bind/named.conf.options
directory “/var/cache/bind”;
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0′s placeholder.
// forwarders {
// 0.0.0.0;
// };
//
forwarders {
202.155.0.10;
202.155.0.15;
};
auth-nxdomain no; # conform to RFC1035Primary Master untuk domain lukman.com. Edit /etc/bind/named.conf.local:
listen-on-v6 { any; };
};
$ sudo pico /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include “/etc/bind/zones.rfc1918″;
zone “lukman.com” {Membuat file / etc / bind / db.lukman.com:
type master;
file “/etc/bind/db.lukman.com”;
};
# sudo cp /etc/bind/db.local /etc/bind/db.lukman.com
Edit file /etc/bind/db.lukman.comReverse Zone File
$ sudo pico /etc/bind/db.lukman.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.lukman.com. root.lukman.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.lukman.com.
@ IN A 192.168.50.1
@ IN AAAA ::1
ns IN A 192.168.50.1
www IN A 192.168.50.1
Edit /etc/bind/named.conf.local :
$ sudo pico /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include “/etc/bind/zones.rfc1918″;
zone “lukman.com” {
type master;
file “/etc/bind/db.lukman.com”;
};
zone “50.168.192.in-addr.arpa” {Sekarang buat file /etc/bind/db.192 :
type master;
notify no;
file “/etc/bind/db.192″;
};
$ sudo cp /etc/bind/db.127 /etc/bind/db.192Edit /etc/bind/db.192 :
$ sudo pico /etc/bind/db.192
;restart BIND9:
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.lukman.com. root.lukman.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.
206 IN PTR ns.lukman.com.
$ sudo /etc/init.d/bind9 restartSecondary Master
Untuk membuat DNS master dan Slave, contoh :
DNS Master IP Address 192.168.50.1
DNS Slave IP Address 192.168.50.111
Pada MASTER:
edit /etc/bind/named.conf.local:
zone “lukman.com” {Pada SLAVE :
type master;
file “/etc/bind/db.lukman.com”;
allow-transfer { 192.168.50.111; };
};
zone “50.168.192.in-addr.arpa” {
type master;
notify no;
file “/etc/bind/db.192″;
allow-transfer { 192.168.50.111; };
};
Edit /etc/bind/named.conf.local :
zone “lukman.com” {Restart BIND9
type slave;
file “db.lukman.com”;
masters { 192.168.50.1; };
};
zone “50.168.192.in-addr.arpa” {
type slave;
file “db.192″;
masters { 192.168.50.1; };
};
$ sudo /etc/init.d/bind9 restartresolv.conf
edit /etc/resolv.conf :
$ sudo pico /etc/resolv.conf
nameserver 192.168.50.1dig
nameserver 202.155.0.10
nameserver 202.155.0.15
dig -x 192.168.50.1ping
ping lukman.com
Semoga bermanfaat
bg..dagh aku cobain, gagal. kenapa thu bg? mohon bantuanna.
BalasHapusMunkin ada yang salah dalam pengetikannya mas bro....
BalasHapuscoba lagi yang teliti, sesuaikan apa yang ada di tulisan ane,,,
titik komanya juga jangan ditinggalin
mas kalau rndc connection refused 127.0.0.1#953
BalasHapusapa ya sebabnya, persmiison file di direktori /etc/bind sudah milik root semua
Ass..
BalasHapuskslahn nya dmana y ydh coba berkli2 tpii ttap gagal..
gan udah ane coba, gitu ane lakukan perintah terakhir /ettc/init.d/bind9 restart, ane dapet balasan starting domain name service bind9 fail
BalasHapuskenapa itu gan? help