diff --git a/README.md b/README.md index 42bef96..824aadb 100644 --- a/README.md +++ b/README.md @@ -254,3 +254,102 @@ > ``` MariaDB [testpdns]> CREATE UNIQUE INDEX namealgoindex ON tsigkeys(name, algorithm); ``` + +#### Step 3: Instalasi dan konfigurasi PowerDNS + +Setelah membuat database dan table untuk service PowerDNS selanjutnya lakukan instalasi PowerDNS. + +> ```# yum -y install pdns pdns-backend-mysql bind-utils``` + +Lakukan konfigurasi file `pdns.conf` + +> ``` +# cd /etc/pdns/ +pdns# vi pdns.conf +``` + +Rubah dan tambahakan perintah berikut. + +> ``` +#i################################ +# launch Which backends to launch and order to query them in +# +# launch=bind (kasih tanda pagar untuk nonaktifkan) +launch=gmysql +gmysql-host=localhost +gmysql-user=pdns (user database) +gmysql-password=y4m4h475 (Password database) +gmysql-dbname=testpdns (nama database) +``` + +Save dan Close kemudian enable serta aktifkan service PowerDNS. + +> ``` +# systemctl enable pdns +# systemctl start pdns +``` + +Pastikan service PowerDNS berjalan + +> ``` +# systemctl status pdns +● pdns.service - PowerDNS Authoritative Server + Loaded: loaded (/usr/lib/systemd/system/pdns.service; enabled; vendor preset: disabled) + Active: active (running) since Sun 2020-03-15 13:08:11 WIB; 1h 21min ago + Docs: man:pdns_server(1) + man:pdns_control(1) + https://doc.powerdns.com + Main PID: 2796 (pdns_server) + CGroup: /system.slice/pdns.service + └─2796 /usr/sbin/pdns_server --guardian=no --daemon=no --disable-s... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: UDP server bound to 0.... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: UDPv6 server bound to ... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: TCP server bound to 0.... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: TCPv6 server bound to ... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: PowerDNS Authoritative... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: Using 64-bits mode. Bu... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: PowerDNS comes with AB... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: Creating backend conne... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: About to create 3 back... +Mar 15 13:08:11 pdns.padiakse.my.id pdns_server[2796]: Done launching threads... +Hint: Some lines were ellipsized, use -l to show in full. +``` + +Setelah aktif pastikan service Pdns telah terhubung dengan database yang dibuat tadi dengan cara berikut. + +Matikan service PowerDNS + +> ``` +# systemctl stop pdns +``` + +Jalankan perintah berikut: + +> ``` +# /usr/sbin/pdns_server --daemon=no --guardian=no --loglevel=9 +Mar 15 14:30:36 Reading random entropy from '/dev/urandom' +Mar 15 14:30:36 Loading '/usr/lib64/pdns/libgmysqlbackend.so' +Mar 15 14:30:36 [gmysqlbackend] This is the gmysql backend version 4.1.11 reporting +Mar 15 14:30:36 This is a standalone pdns +Mar 15 14:30:36 Listening on controlsocket in '/var/run/pdns.controlsocket' +Mar 15 14:30:36 UDP server bound to 0.0.0.0:53 +Mar 15 14:30:36 UDPv6 server bound to [::]:53 +Mar 15 14:30:36 TCP server bound to 0.0.0.0:53 +Mar 15 14:30:36 TCPv6 server bound to [::]:53 +Mar 15 14:30:36 PowerDNS Authoritative Server 4.1.11 (C) 2001-2018 PowerDNS.COM BV +Mar 15 14:30:36 Using 64-bits mode. Built using gcc 4.8.5 20150623 (Red Hat 4.8.5-36). +Mar 15 14:30:36 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2. +Mar 15 14:30:36 Set effective group id to 993 +Mar 15 14:30:36 Set effective user id to 996 +Mar 15 14:30:36 Creating backend connection for TCP +Mar 15 14:30:36 gmysql Connection successful. Connected to database 'testpdns' on 'localhost'. +Mar 15 14:30:36 About to create 3 backend threads for UDP +Mar 15 14:30:36 gmysql Connection successful. Connected to database 'testpdns' on 'localhost'. +Mar 15 14:30:36 gmysql Connection successful. Connected to database 'testpdns' on 'localhost'. +Mar 15 14:30:36 gmysql Connection successful. Connected to database 'testpdns' on 'localhost'. +Mar 15 14:30:36 Done launching threads, ready to distribute questions +``` + +Apabila service Pdns telah terhubung dengan database selanjutnya kita close dan jalankan service PowerDNS kembali. + +#### Step 4: Add Glue Record and Add Record