bind9

Posted by Achmad 'Rhoma' Fanani (kanny) on 3/15/2012 06:53:00 AM


kali ini sy cb share tentang permasalahan yg sy temui sewaktu mengkonfigurasi bind9 pd mesin debian 6 (squeeze)

Saya menggunakan webmin utk mengkonfigurasi zones pd bind9
ketika mencoba mengedit record pd zone, kemudian klik "Aply Zone", ternyata keluar eror:
rndc: connect failed: 127.0.0.1#953: connection refused

begitu jg ketika kita cek pd terminal dg perintah:
deb:~# rndc status

hasilnya muncul error spt diatas.
nah, cara utk mengatasinya sbb:
buka terminal,


 deb:~# rndc-confgen > /etc/rndc.conf
maka akan terbentuk file /etc/rndc.conf
isi dr file itu kurang lbh spt ini:
/etc/rndc.conf
---------------------------------------------------
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "some-gibberish-key";
};

options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndc-key" {
# algorithm hmac-md5;
# secret "same-gibberish-gibberish-as-above";
# };
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf
--------------------------------------------------------------------------


Kemudian buka file config dr bind, /etc/bind/named.conf (sesuaikan dg punyamu)  tambahkan spt pd baris yg di koment pd /etc/rndc.conf diatas.
Kira2 akan spt ini:

key "rndc-key" {
  algorithm hmac-md5;
 secret "same-gibberish-gibberish-as-above";
};


controls {
  inet 127.0.0.1 port 953
  allow { 127.0.0.1; } keys { "rndc-key"; };
};


perhatikan yg sy garis bawah, itu harus sama dg yg ada pd  /etc/rndc.conf
Setelah itu save, kemudian restart service bind9

Periksa apakah rndc sudah berhasil:

deb:~# rndc status
version: 9.7.3
CPUs found: 1
worker threads: 1
number of zones: 20
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running


Nama Anda
New Johny WussUpdated: 3/15/2012 06:53:00 AM

0 komentar:

CB