Unable to change powerdns configuration because cPanel is resetting my changes

rscalover

Well-Known Member
Dec 16, 2010
119
15
68
cPanel Access Level
Root Administrator
Hello,

so i open /etc/pdns/pdns.conf and change whatever i like to change after that save the file and issue /scripts/restartsrv_pdns powerds restarts but i receive notifications from cPanel from some service called "migrate-pdns-conf" why ?? :mad: i'm angry at you cPanel

i tryed to change who is allowed to access the powerdns build in webserver so ....

webserver-allow-from=127.0.0.0/8,my_ip_here

but it seems cPanel doesn't like it.
 

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
in /etc/pdns/pdns.conf I see this:

Code:
#################################
# include-dir   Include *.conf files from this directory
#
# include-dir=
does that help you out?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator

rscalover

Well-Known Member
Dec 16, 2010
119
15
68
cPanel Access Level
Root Administrator
Can you let me know specifically when you're seeing the configuration change? We have several other guides that recommend editing that file directly, such as this one:


so I would expect the steps you've outlined to work well.
Here is a screenshot cPanel does not allow editing of pdns.conf i tryed something like i found here How to generate daily PowerDNS statistics reports – trick77.com but the message body is empty .I would rather have those pretty graphs like this DNS Statistics that's a script for bind though but that is my goal

this does work without problems

log-dns-queries=yes
loglevel=5

i just tryed it hmmm this is getting weird
 

Attachments

rscalover

Well-Known Member
Dec 16, 2010
119
15
68
cPanel Access Level
Root Administrator
Hello,

Yeah it looks like that looking at this issue it makes me feel like going back to bind as the only thing i'll lose is the DNSSEC support but whole lot easier to get those statistics .

edit
You can change the code in the instructions at How to generate daily PowerDNS statistics reports – trick77.com to

Code:
#!/bin/sh
/usr/bin/curl -s --user powerdns:serverpasswordhere http://127.0.0.1:8081 | mail -s "$(echo "PowerDNS Daily Report\nMIME-Version: 1.0\nContent-Type: text/html")" root
The serverpassword is in /etc/pdns/pdns.conf though in more recent version of powerdns it is hashed
 
Last edited: