Comments on How to Install PowerDNS and PowerAdmin on Rocky Linux

PowerDNS is a free and open-source DNS Server software. In this guide, we will show you how to install PowerDNS and the PowerDNS-Admin on a Rocky Linux system. We will run the PowerDNS with the MySQL/MariaDB database backend and set up the PowerDNS-Admin that will be used as the web-based management tool for the PowerDNS server.

5 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Paul Vinson

Doesn't work for Rocky Linux 9 as the Powertools repository has been changed to CRB.   In fact, I have not found a reliable guide to installing Poweradmin on Rocky Linux 9.

By: mx/x

change

sudo dnf config-manager --set-enabled powertools

to

dnf config-manager --enable crb dnf config-manager --enable crb

By: mx/z

mine cannot find gunicorn :(× powerdns-admin.service - PowerDNS-Admin     Loaded: loaded (/etc/systemd/system/powerdns-admin.service; enabled; vendor preset: disabled)     Active: failed (Result: exit-code) since Tue 2023-01-31 17:30:25 CET; 8s ago   Duration: 3msTriggeredBy: ? powerdns-admin.socket   Main PID: 45353 (code=exited, status=203/EXEC)        CPU: 11msJan 31 17:30:25 localhost.localdomain systemd[1]: Starting PowerDNS-Admin...Jan 31 17:30:25 localhost.localdomain systemd[1]: Started PowerDNS-Admin.Jan 31 17:30:25 localhost.localdomain systemd[45353]: powerdns-admin.service: Failed to locate executable /usr/local/bin/gunicorn: No such file or directoryJan 31 17:30:25 localhost.localdomain systemd[45353]: powerdns-admin.service: Failed at step EXEC spawning /usr/local/bin/gunicorn: No such file or directoryJan 31 17:30:25 localhost.localdomain systemd[1]: powerdns-admin.service: Main process exited, code=exited, status=203/EXECJan 31 17:30:25 localhost.localdomain systemd[1]: powerdns-admin.service: Failed with result 'exit-code'.

By: hybridblue

I modified the /etc/systemd/system/powerdns-admin.service file and changed the pat to gunicorn in the "ExecStart" to the full path in the powerdns-admin dir under opt. 

Ex: "ExecStart=/opt/powerdns-admin/flask/bin/gunicorn"

Now I am having a problem with Nginx. 

Getting a 503 gateway issue and this in the error logs. 

2023/07/08 17:27:29 [error] 18394#18394: *6 upstream prematurely closed connection while reading response header from upstream, client: 172.16.150.143, server: pdns.xxxx.net, request: "GET / HTTP/2.0", upstream: "http://unix:/run/powerdns-admin/socket:/", host: "pdns.xxxxx.net"

2023/07/08 17:27:29 [error] 18394#18394: *6 upstream prematurely closed connection while reading response header from upstream, client: 172.16.150.143, server: pdns.xxxxxxx.net, request: "GET /favicon.ico HTTP/2.0", upstream: "http://unix:/run/powerdns-admin/socket:/favicon.ico", host: "pdns.xxxxxx.net", referrer: "https://pdns.xxxxxx.net/"

Still working on that issue.. 

 

By: bradb

@hybridblue did you ever figure this out? We're getting the same error as you regarding the upstream client.