{"id":1162,"date":"2019-09-08T12:56:56","date_gmt":"2019-09-08T10:56:56","guid":{"rendered":"http:\/\/blog.schmoigl-online.de\/?p=1162"},"modified":"2019-09-08T13:25:38","modified_gmt":"2019-09-08T11:25:38","slug":"issues-with-powerdns-on-debian-with-plesk-installed","status":"publish","type":"post","link":"http:\/\/blog.schmoigl-online.de\/?p=1162","title":{"rendered":"Issues with PowerDNS on Debian with Plesk Installed"},"content":{"rendered":"\n<p>When perfoming an &#8220;apt-get upgrade&#8221; on your machine, and you have both PowerDNS and Plesk installed, you may encounter a cumbersome situation:<\/p>\n\n\n\n<p>Plesk automatically tries to reactivate bind9. However, bind9 and PowerDNS may be listening on the same UDP port (53). The best countermeasure against that is<\/p>\n\n\n\n<p><code>sudo service bind9 stop<\/code><br><code>sudo service bind9 disable<\/code><\/p>\n\n\n\n<p>Additionally, Debian and PowerDNS aren&#8217;t really friends. The problem mentioned at <a href=\"https:\/\/github.com\/PowerDNS\/pdns\/issues\/4219\">https:\/\/github.com\/PowerDNS\/pdns\/issues\/4219<\/a> which is resolved with <a href=\"https:\/\/github.com\/PowerDNS\/pdns\/issues\/4219#issuecomment-234250149\">https:\/\/github.com\/PowerDNS\/pdns\/issues\/4219#issuecomment-234250149<\/a> still isn&#8217;t handled out of the box. So, additionally, you should comment the line<\/p>\n\n\n\n<p><code>RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6<\/code><\/p>\n\n\n\n<p>in \/lib\/systemd\/system\/pdns.service. This adjustment may get overwritten with each upgrade that you perform. Afterwards do a<\/p>\n\n\n\n<p><code>sudo systemctl daemon-reload<br>sudo service pdns restart<\/code><\/p>\n\n\n\n<p>If you forget to comment the line mentioned above, you may end up with the strange error message:<\/p>\n\n\n\n<p><code>pdns.service: Failed at step ADDRESS_FAMILIES spawning \/usr\/sbin\/pdns_server: Invalid argument<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The article gives hints on how to properly re-adjust the Debian configuration, if both Plesk (with BIND\/Named) and PowerDNS are installed. It addresses the error message &#8220;Failed at step ADDRESS_FAMILIES spawning&#8221;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1162","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=\/wp\/v2\/posts\/1162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1162"}],"version-history":[{"count":2,"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=\/wp\/v2\/posts\/1162\/revisions"}],"predecessor-version":[{"id":1167,"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=\/wp\/v2\/posts\/1162\/revisions\/1167"}],"wp:attachment":[{"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1162"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.schmoigl-online.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}