Difference between revisions of "PowerDNS: Instalasi DNS Recursor"

From OnnoWiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.
+
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.
  
The Recursor is used by several of the largest Internet providers of the world, including AOL, Shaw Cable and Neuf Cegetel.
+
Install pdns-recursor package
  
1. Install the pdns-recursor package
+
apt-get install pdns-recursor
  
  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
  
2. Configure the server to listen to all interfaces and allow queries from the local network (pico /etc/powerdns/recursor.conf)
+
Atau, kalau digunakan di public network
  
allow-from=192.168.1.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.
 
  
3. Restart the DNS server
+
Restart DNS server
  
 
  /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