Difference between revisions of "PowerDNS: Test"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Edit file /ect/resolv.conf ,
+
==Topology Jaringan==
 +
 
 +
SERVER DNS ------ CLIENT DNS
 +
2345::1/64        2345::2/64
 +
 
  
sudo vi /etc/resolv.conf
+
==DNS Server==
  
isi misalnya dengan IPv6
+
Set IPv6 misalnya
  
  nameserver 2001:470:36:ab6::100
+
  ip addr add 2345::1/64 dev enp0s3
  
sesuai dengan IP address server DNS IPv6 yang kita test.
+
Cek PowerDNS
  
Set the name server IP address pada file /etc/network/interfaces
+
sudo netstat -tap | grep pdns
  
auto lo
+
Pastikan harus ada tcp dan tcp6:  
iface lo inet loopback
 
 
auto eth0
 
iface eth0 inet static
 
address 192.168.0.100
 
netmask 255.255.255.0
 
network 192.168.0.0
 
broadcast 192.168.0.255
 
gateway 192.168.0.223
 
dns-nameservers 192.168.0.223
 
iface eth0 inet6 static
 
      address 2001:470:36:ab6::100
 
      netmask 64
 
      gateway 2001:470:36:ab6::1
 
      dns-nameservers 2001:470:36:ab6::100
 
  
Kita selesai dengan semua bagian instalasi dan konfigurasi. Selanjutnya, kita perlu cek apakah PowerDNS dapat berjalan dengan baik atau tidak.  
+
tcp        0      0 0.0.0.0:domain          0.0.0.0:*              LISTEN      6676/pdns_server   
 +
tcp6      0      0 [::]:domain            [::]:*                  LISTEN      6676/pdns_server
  
Pertama-tama, cek apakah PowerDNS mendengarkan:  
+
Cek apakah PowerDNS berjalan dengan baik:  
  
  sudo netstat -tap | grep pdns
+
  sudo dig @127.0.0.1
 +
sudo dig @localhost
 +
sudo dig @192.168.0.3 (ini IP PowerDNS Server)
 +
 
 +
Contoh output kira-kira:
  
contoh output (harus ada tcp dan tcp6):  
+
; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> @localhost
 +
; (2 servers found)
 +
;; global options: +cmd
 +
;; Got answer:
 +
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 41977
 +
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
 +
;; WARNING: recursion requested but not available
 +
 +
;; OPT PSEUDOSECTION:
 +
; EDNS: version: 0, flags:; udp: 1680
 +
;; QUESTION SECTION:
 +
;. IN NS
 +
 +
;; Query time: 0 msec
 +
;; SERVER: ::1#53(::1)
 +
;; WHEN: Wed Feb 20 02:46:47 UTC 2019
 +
;; MSG SIZE  rcvd: 28
  
tcp    0  0 *:domain      *:*      LISTEN      5388/pdns_server-in
 
tcp6  0  0 [::]:domain    [::]:*    LISTEN      5388/pdns_server-in
 
  
Sekarang, masukan perintah berikut, untuk mencek apakah PowerDNS berjalan dengan baik:
 
  
sudo dig @127.0.0.1
+
==Client==
  
atau,
+
Set IPv6 misalnya
  
  sudo dig @localhost
+
  ip addr add 2345::2/64 dev enp3s0
  
atau,
+
Edit file /ect/resolv.conf ,  
  
  sudo dig @192.168.0.100
+
  sudo vi /etc/resolv.conf
  
Contoh output kira-kira:
+
isi misalnya dengan IPv6
  
  ; <<>> DiG 9.9.5-3-Ubuntu <<>> @localhost
+
  nameserver 2345::1
; (2 servers found)
 
;; global options: +cmd
 
;; Got answer:
 
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54892
 
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1  
 
;; WARNING: recursion requested but not available
 
 
;; OPT PSEUDOSECTION:
 
; EDNS: version: 0, flags:; udp: 2800
 
;; QUESTION SECTION:
 
;. IN NS 
 
  
;; Query time: 6 msec
 
;; SERVER: 127.0.0.1#53(127.0.0.1)
 
;; WHEN: Tue Jun 30 08:59:00 WIB 2015
 
;; MSG SIZE  rcvd: 29
 
  
Masukan perintah agar dig ke IPv6
+
Cek IPv6
  
  dig @2001:470:36:ab6::100
+
  dig @2345::1
  
 
Outputnya kira-kira:
 
Outputnya kira-kira:
  
  ; <<>> DiG 9.9.5-3-Ubuntu <<>> @2001:470:36:ab6::100
+
  ; <<>> DiG 9.11.3-1ubuntu1-Ubuntu <<>> @2345::1
  ; (1 server found)  
+
  ; (1 server found)
  ;; global options: +cmd  
+
  ;; global options: +cmd
  ;; Got answer:  
+
  ;; Got answer:
  ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16204
+
  ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 57833
  ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1  
+
  ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
  ;; WARNING: recursion requested but not available  
+
  ;; WARNING: recursion requested but not available
 
   
 
   
  ;; OPT PSEUDOSECTION:  
+
  ;; OPT PSEUDOSECTION:
  ; EDNS: version: 0, flags:; udp: 2800
+
  ; EDNS: version: 0, flags:; udp: 1680
  ;; QUESTION SECTION:  
+
  ;; QUESTION SECTION:
  ;. IN NS  
+
  ;. IN NS
 
   
 
   
  ;; Query time: 1 msec  
+
  ;; Query time: 0 msec
  ;; SERVER: 2001:470:36:ab6::100#53(2001:470:36:ab6::100)  
+
  ;; SERVER: 2345::1#53(2345::1)
  ;; WHEN: Tue Jun 30 09:19:49 WIB 2015
+
  ;; WHEN: Wed Feb 20 09:48:00 WIB 2019
  ;; MSG SIZE  rcvd: 29
+
  ;; MSG SIZE  rcvd: 28
  
 
Selesai sudah. PowerDNS siap digunakan.  
 
Selesai sudah. PowerDNS siap digunakan.  

Latest revision as of 09:17, 22 February 2019

Topology Jaringan

SERVER DNS ------ CLIENT DNS
2345::1/64        2345::2/64


DNS Server

Set IPv6 misalnya

ip addr add 2345::1/64 dev enp0s3

Cek PowerDNS

sudo netstat -tap | grep pdns 

Pastikan harus ada tcp dan tcp6:

tcp        0      0 0.0.0.0:domain          0.0.0.0:*               LISTEN      6676/pdns_server    
tcp6       0      0 [::]:domain             [::]:*                  LISTEN      6676/pdns_server 

Cek apakah PowerDNS berjalan dengan baik:

sudo dig @127.0.0.1 
sudo dig @localhost 
sudo dig @192.168.0.3 (ini IP PowerDNS Server)

Contoh output kira-kira:

; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> @localhost
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 41977
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1680
;; QUESTION SECTION:
;.				IN	NS

;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Wed Feb 20 02:46:47 UTC 2019
;; MSG SIZE  rcvd: 28


Client

Set IPv6 misalnya

ip addr add 2345::2/64 dev enp3s0

Edit file /ect/resolv.conf ,

sudo vi /etc/resolv.conf 

isi misalnya dengan IPv6

nameserver 2345::1


Cek IPv6

dig @2345::1

Outputnya kira-kira:

; <<>> DiG 9.11.3-1ubuntu1-Ubuntu <<>> @2345::1
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 57833
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1680
;; QUESTION SECTION:
;.				IN	NS

;; Query time: 0 msec
;; SERVER: 2345::1#53(2345::1)
;; WHEN: Wed Feb 20 09:48:00 WIB 2019
;; MSG SIZE  rcvd: 28

Selesai sudah. PowerDNS siap digunakan.


Pranala Menarik