Difference between revisions of "PowerDNS: Instalasi DNS Recursor"

From OnnoWiki
Jump to navigation Jump to search
(New page: Installing PowerDNS Recursor June 14, 2010 by aip·0 Comment PowerDNS Recursor is a resolving DNS server, that runs as a separate process. The authoritative pdns_server can be configured...)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Installing PowerDNS Recursor
+
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.
June 14, 2010 by aip·0 Comment
 
  
PowerDNS Recursor is a resolving DNS server, that runs as a separate process. The authoritative pdns_server can be configured to proxy recursive queries to the recursor, and optionally overlay authoritative zone data.
+
Install pdns-recursor package
  
The Recursor is used by several of the largest Internet providers of the world, including AOL, Shaw Cable and Neuf Cegetel.
+
apt-get install pdns-recursor
  
1. Install the pdns-recursor package
+
Konfigurasi server untuk mendengar semua interface dan mengijinkan query dari jaringan local-nya
  
apt-get install pdns-recursor
+
vi /etc/powerdns/recursor.conf
  
2. Configure the server to listen to all interfaces and allow queries from the local network (pico /etc/powerdns/recursor.conf)
+
isi
  
allow-from=192.168.1.0/24
+
local-address=127.0.0.1
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.
+
Atau, kalau digunakan di public network
  
3. Restart the DNS server
+
local-address=0.0.0.0
 +
local-port=53
 +
quiet=yes
 +
setgid=pdns
 +
setuid=pdns
  
/etc/init.d/pdns-recursor restart
 
  
 +
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
  
  

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