Catalog: Powerdns Simple Tutorial (1): Installation Chapter Powerdns simple Tutorial (2): function (this) powerdns simple tutorial (3): Management Powerdns Simple Tutorial (4): After the optimization of the installation of Powerdns, itit's already running. Available through ps-ef |grep PDNsSeePDNs the process-usually PDNsThere are two processes running. Powerdns installed by apt, the main files used in the following directory:/ETC/DEFAULT/PDNS/INIT.D/PDNS/POWERDNS/PDNS.CONF/USR/BIN/PDNS_CONTROL/SBI n/pdns_server/share/pdns_backend_mysql/.../pdns_server/.../doc/... Focus on several places: (1)/etc/init.d/pdnsthroughsudo service pdns--helporSudo/etc/init.d/pdns--can seePDNswhat commands are included in the service (in fact, as long as the following options are not written, you can seePDNsof all commands). Powerdnsthe commands are:Start: Starts the service. Stop: Stop the service. Force-stop: Force stop service. Restart: Restart the service. The reboot here is just a rerun of the PDNs, and if the PDNS itself is functioning properly it is possible to make no changes. If the parameters set by PDNs are changed, the use of the restart command may not change. Reload: Reload. Status: View service health status (is runningor is not running). Monitor: Starts the service in monitoring mode. Monitorthe pattern is quite useful. It's just a good idea. PDNsUsesudo service pdns stop Stop the service first and then sudo service pdns monitoruse monitor mode to start to see if there are any errors. As mentioned earlier, Use-logfileparameter does not exist, if directly using the Startstartup can start, but does not prompt the problem, with Monitorwill be directly error. Common errors are shown on the webpage: https://doc.powerdns.com/md/authoritative/installation/ (actually is the installation manual of the official website)Dump: Dump. The dump command shows some of the current DNS queries, such as the number of cache hits, the number of udp/tcp responses, and so on, which can be used to configure Powerdns parameters. Show: Displays the parameters. You need to specify which parameters to see after show. Use dump to query the specific parameters (think this command is very boring). MRTG: A tool for monitoring network link traffic load, which can be used by a write configuration file. This function is more complex, I will not use, familiar with MRTG students can use the official website to study how to write the configuration file. Website address:https://doc.powerdns.com/md/common/logging/#performance-monitoringCricket: This parameter is very similar to show in the startup script, which is not described in the official website. The suspect is an unfinished feature. (2)/usr/bin/pdns_controlIt is also possible toPowerdnsperform some control and display the running status. Since it is in the/usr/bin, it is used directly as a command. Https://doc.powerdns.com/md/manpages/pdns_control.1/(3)/usr/sbin/pdns_serverThis command is also a starting mode for Powerdns, with parameters started. The parameters are actually part of the pdns.conf configuration file. Available throughsudo pdns_server--help to query the Help documentation. HTTPS://DOC.POWERDNS.COM/MD/MANPAGES/PDNS_SERVER.1/in fact, the function of Powerdns is relatively simple, mainly through the parameter adjustment, after the start of the tube too much, to its own resolution of the DNS is good. As for the process of parsing, mainly through the back-end database query to complete. The specific domain name record can be directly written into the SQL statement to insert into the database, or use the poweradmin described in the next section to manage.
Powerdns Simple Tutorial (2): function Chapter