Difference between revisions of "PowerDNS: Instalasi DNS Recursor"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
  vi /etc/powerdns/recursor.conf
 
  vi /etc/powerdns/recursor.conf
  
isi, misalnya local network 192.168.0.0/24
+
isi
 +
 
 +
local-address=127.0.0.1
 +
local-port=53
 +
quiet=yes
 +
setgid=pdns
 +
setuid=pdns
 +
 
 +
Atau, kalau digunakan di public network
  
allow-from=192.168.0.0/24
 
 
  local-address=0.0.0.0
 
  local-address=0.0.0.0
 +
local-port=53
 +
quiet=yes
 +
setgid=pdns
 +
setuid=pdns
  
Replace 192.168.1.0/24 with your local network or the network allowed to query the resolving NS server.
 
  
 
Restart DNS server
 
Restart DNS server
Line 20: Line 30:
 
  /etc/init.d/pdns-recursor restart
 
  /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
  
  

Latest revision as of 08:59, 2 June 2015

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