Searching...
Monday, March 9, 2015

Konfigurasi Unbound pada Debian 7.4

12:55 AM
Sebelumnya saya sudah lakukan catatan tentang install unbound di server debian 7,kebutuhan ini saya install karena saya gunakan untuk server proxy dengan squid3, untuk kali ini saya akan melakukan upgrade dan konfigurasi file unbond.conf yang adan di root direktory "/etc/unbound/".
Untuk melakukan upgrade dan install serta konfigurasi unbound maka terlebih dahulu saya akan memasukan alamat server repository debian 7.4 yang memiliki file unboun versi 1.4.2. yaitu dengan melaukan perintah echo.
echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
Lakukanlah uninstall service Unbound versi sebelumnya yaitu uninstall dan kemudian lakukan update serta install versi 1.422 dengan cara:
apt-get purge unbound -y
apt-get update
apt-get -t wheezy-backports install "unbound"
Lakukan download untuk file root.server untuk service unbound di alamat berikut:
root@getdeb:/temp# wget http://www.internic.net/domain/named.root -O /etc/unbound/root.server
setelah itu lakukan config file unbound.conf jangan lupa lakukan backup sebelumnya file unbound.conf yang lama, untuk jaga-jaga.
server:
directory: "/etc/unbound"
root-hints: "/etc/unbound/root.server"
interface: 0.0.0.0
access-control: 0.0.0.0/0 allow
verbosity: 3
hide-identity: yes
hide-version: yes
prefetch: yes
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: yes
num-threads: 1
outgoing-range: 400
so-rcvbuf: 10m
so-sndbuf: 10m
cache-min-ttl: 3600
private-address: 10.0.0.0/8
private-address: 172.16.0.0/12
private-address: 192.168.0.0/16
private-address: 127.0.0.1/8
Kemudian lalukan restar service unbound nya dengan service unbound restart dan lakukan cek dengan perintah dibawah ini
root@getdeb:/temp# tail -f /var/log/syslog

Mar  9 13:59:26 getdeb unbound: [3199:0] notice: init module 1: iterator
Mar  9 13:59:26 getdeb unbound: [3199:0] debug: target fetch policy for level 0 is 3
Mar  9 13:59:26 getdeb unbound: [3199:0] debug: target fetch policy for level 1 is 2
Mar  9 13:59:26 getdeb unbound: [3199:0] debug: target fetch policy for level 2 is 1
Mar  9 13:59:26 getdeb unbound: [3199:0] debug: target fetch policy for level 3 is 0
Mar  9 13:59:26 getdeb unbound: [3199:0] debug: target fetch policy for level 4 is 0
Mar  9 13:59:26 getdeb unbound: [3199:0] debug: Reading root hints from /etc/unbound/root.server
Mar  9 13:59:26 getdeb unbound: [3199:0] info: DelegationPoint<.>: 13 names (2 missing), 24 addrs (0 result, 24 avail) parentNS
Mar  9 13:59:26 getdeb unbound: [3199:0] debug: cache memory msg=66072 rrset=66072 infra=2600 val=66344
Mar  9 13:59:26 getdeb unbound: [3199:0] info: start of service (unbound 1.4.22).
Dari syslogbisa kita lihat service nya sudah tidak ada error di unbound, semoga catatan ini bisa bermanfaat yang membutuhkan....

0 comments: