PowerDNS / pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist
https://www.powerdns.com/
GNU General Public License v2.0
3.62k stars 903 forks source link

Broken behaviour when stdin is closed #1694

Open Habbie opened 10 years ago

Habbie commented 10 years ago

Pushing ^D on a --control-console causes this:

% Sep 02 07:31:45 Fatal error in control listener: Guardian exited - going down as well
Sep 02 07:31:45 Control listener aborted, please file a bug!

pdns then needs to ^C to actually exit. 'quit' (before ^D) does work.

Related: kill -9 on a guardian makes the child log 'going down as well' but it does not in fact go down.

dac2020 commented 7 years ago

I realize this is very old but I just saw this in my logs also when enabling local recursor.

Jun 15 10:38:05 ns1.xxx.com pdns[21883]: Creating backend connection for TCP
Jun 15 10:38:05 ns1.xxx.com pdns[21883]: Fatal error in control listener: Guardian exited - going down as well
Jun 15 10:38:05 ns1.xxx.com pdns[21883]: Control listener aborted, please file a bug!

Thought I'd mention it since it does say file a bug.

I followed an example I found searching google.

Your recursor.conf should minimally look like this:

daemon=yes
local-port=5353
local-address=127.0.0.1
allow-from=_YOUR_LOCAL_NETMASK_,127.0.0.1

regarding recursion, your pdns.conf should look like this:

allow-recursion=_YOUR_LOCAL_NETMASK_,127.0.0.1
recursor=127.0.0.1:5353