Difference between revisions of "PowerDNS: Test"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with "Edit file /ect/resolv.conf , sudo vi /etc/resolv.conf isi misalnya dengan IPv6 nameserver 2001:470:36:ab6::100 sesuai dengan IP address server DNS IPv6 yang kita test. Set...") |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
Edit file /ect/resolv.conf , | Edit file /ect/resolv.conf , | ||
− | sudo vi /etc/resolv.conf | + | |
+ | sudo vi /etc/resolv.conf | ||
+ | |||
isi misalnya dengan IPv6 | isi misalnya dengan IPv6 | ||
− | nameserver 2001:470:36:ab6::100 | + | |
+ | nameserver 2001:470:36:ab6::100 | ||
+ | |||
sesuai dengan IP address server DNS IPv6 yang kita test. | sesuai dengan IP address server DNS IPv6 yang kita test. | ||
Set the name server IP address pada file /etc/network/interfaces | Set the name server IP address pada file /etc/network/interfaces | ||
− | |||
− | |||
− | auto eth0 | + | auto lo |
− | iface eth0 inet static | + | iface lo inet loopback |
− | address 192.168.0.100 | + | |
− | netmask 255.255.255.0 | + | auto eth0 |
− | network 192.168.0.0 | + | iface eth0 inet static |
− | broadcast 192.168.0.255 | + | address 192.168.0.100 |
− | gateway 192.168.0.223 | + | netmask 255.255.255.0 |
− | dns-nameservers 192.168.0.223 | + | network 192.168.0.0 |
− | iface eth0 inet6 static | + | 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. | Kita selesai dengan semua bagian instalasi dan konfigurasi. Selanjutnya, kita perlu cek apakah PowerDNS dapat berjalan dengan baik atau tidak. | ||
Pertama-tama, cek apakah PowerDNS mendengarkan: | Pertama-tama, cek apakah PowerDNS mendengarkan: | ||
− | sudo netstat -tap | grep pdns | + | |
+ | sudo netstat -tap | grep pdns | ||
+ | |||
contoh output (harus ada tcp dan tcp6): | contoh output (harus ada tcp dan tcp6): | ||
− | tcp 0 0 *:domain *:* LISTEN 5388/pdns_server-in | + | |
− | tcp6 0 0 [::]:domain [::]:* LISTEN 5388/pdns_server-in | + | 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: | Sekarang, masukan perintah berikut, untuk mencek apakah PowerDNS berjalan dengan baik: | ||
− | sudo dig @127.0.0.1 | + | |
+ | sudo dig @127.0.0.1 | ||
+ | |||
atau, | atau, | ||
− | sudo dig @localhost | + | |
+ | sudo dig @localhost | ||
+ | |||
atau, | atau, | ||
− | + | ||
+ | sudo dig @192.168.0.100 | ||
+ | |||
Contoh output kira-kira: | Contoh output kira-kira: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ;; OPT PSEUDOSECTION: | + | ; <<>> DiG 9.9.5-3-Ubuntu <<>> @localhost |
− | ; EDNS: version: 0, flags:; udp: 2800 | + | ; (2 servers found) |
− | ;; QUESTION SECTION: | + | ;; global options: +cmd |
− | ;. IN NS | + | ;; 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 | + | ;; Query time: 6 msec |
− | ;; SERVER: 127.0.0.1#53(127.0.0.1) | + | ;; SERVER: 127.0.0.1#53(127.0.0.1) |
− | ;; WHEN: Tue Jun 30 08:59:00 WIB 2015 | + | ;; WHEN: Tue Jun 30 08:59:00 WIB 2015 |
− | ;; MSG SIZE rcvd: 29 | + | ;; MSG SIZE rcvd: 29 |
Masukan perintah agar dig ke IPv6 | Masukan perintah agar dig ke IPv6 | ||
− | dig @2001:470:36:ab6::100 | + | |
+ | dig @2001:470:36:ab6::100 | ||
+ | |||
Outputnya kira-kira: | Outputnya kira-kira: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ;; Query time: 1 msec | + | ; <<>> DiG 9.9.5-3-Ubuntu <<>> @2001:470:36:ab6::100 |
− | ;; SERVER: 2001:470:36:ab6::100#53(2001:470:36:ab6::100) | + | ; (1 server found) |
− | ;; WHEN: Tue Jun 30 09:19:49 WIB 2015 | + | ;; global options: +cmd |
− | ;; MSG SIZE rcvd: 29 | + | ;; Got answer: |
+ | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16204 | ||
+ | ;; 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: 1 msec | ||
+ | ;; SERVER: 2001:470:36:ab6::100#53(2001:470:36:ab6::100) | ||
+ | ;; WHEN: Tue Jun 30 09:19:49 WIB 2015 | ||
+ | ;; MSG SIZE rcvd: 29 | ||
Selesai sudah. PowerDNS siap digunakan. | Selesai sudah. PowerDNS siap digunakan. |
Revision as of 17:54, 27 September 2018
Edit file /ect/resolv.conf ,
sudo vi /etc/resolv.conf
isi misalnya dengan IPv6
nameserver 2001:470:36:ab6::100
sesuai dengan IP address server DNS IPv6 yang kita test.
Set the name server IP address pada file /etc/network/interfaces
auto lo 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.
Pertama-tama, cek apakah PowerDNS mendengarkan:
sudo netstat -tap | grep pdns
contoh output (harus ada tcp dan tcp6):
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
atau,
sudo dig @localhost
atau,
sudo dig @192.168.0.100
Contoh output kira-kira:
; <<>> DiG 9.9.5-3-Ubuntu <<>> @localhost ; (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
dig @2001:470:36:ab6::100
Outputnya kira-kira:
; <<>> DiG 9.9.5-3-Ubuntu <<>> @2001:470:36:ab6::100 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16204 ;; 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: 1 msec ;; SERVER: 2001:470:36:ab6::100#53(2001:470:36:ab6::100) ;; WHEN: Tue Jun 30 09:19:49 WIB 2015 ;; MSG SIZE rcvd: 29
Selesai sudah. PowerDNS siap digunakan.