PowerDNS: Instalasi DNS Recursor

From OnnoWiki
Revision as of 08:59, 2 June 2015 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PowerDNS Recursor adalah sebuah resolving DNS server, yang berjalan sebagai proses yang berbeda. Sebuah authoritative pdns_server dapat di konfigurasi untuk proxy recursive query ke recursor, dan optional bisa authoritive zone data.

Install pdns-recursor package

apt-get install pdns-recursor

Konfigurasi server untuk mendengar semua interface dan mengijinkan query dari jaringan local-nya

vi /etc/powerdns/recursor.conf

isi

local-address=127.0.0.1
local-port=53
quiet=yes
setgid=pdns
setuid=pdns

Atau, kalau digunakan di public network

local-address=0.0.0.0
local-port=53
quiet=yes
setgid=pdns
setuid=pdns


Restart DNS server

/etc/init.d/pdns-recursor restart


test

Untuk IP address DNS recursor

dig www.google.com @192.168.0.100

Hasilnya kira-kira

; <<>> DiG 9.9.5-3-Ubuntu <<>> www.google.com @192.168.0.100
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9059
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com.			IN	A

;; ANSWER SECTION:
www.google.com.		300	IN	A	74.125.200.106
www.google.com.		300	IN	A	74.125.200.147
www.google.com.		300	IN	A	74.125.200.104
www.google.com.		300	IN	A	74.125.200.105
www.google.com.		300	IN	A	74.125.200.103
www.google.com.		300	IN	A	74.125.200.99

;; Query time: 295 msec
;; SERVER: 192.168.0.100#53(192.168.0.100)
;; WHEN: Mon Jun 01 15:14:54 WIB 2015
;; MSG SIZE  rcvd: 128


Referensi