Difference between revisions of "PowerDNS: Instalasi DNS Recursor"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Onnowpurbo (talk | contribs)  | 
				Onnowpurbo (talk | contribs)   | 
				||
| Line 20: | Line 20: | ||
  /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  | ||
Revision as of 15:15, 1 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, misalnya local network 192.168.0.0/24
allow-from=192.168.0.0/24 local-address=0.0.0.0
Replace 192.168.1.0/24 with your local network or the network allowed to query the resolving NS server.
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