[dnsdist] cache dnsdist not working for my setup

Markus Ehrlicher Markus.Ehrlicher at komsa.de
Tue Feb 9 10:03:41 UTC 2021


Hi,

I think, I ran into the same problem ob Ubuntu 20.04. My solution was, to create an folder /var/log/dnsdist with write-permission to the _dnsdist-User and configured all logfiles for dnsdist to this location.

Best regards,
Markus

-----Ursprüngliche Nachricht-----
Von: dnsdist <dnsdist-bounces at mailman.powerdns.com> Im Auftrag von Pieter Lexis via dnsdist
Gesendet: Dienstag, 9. Februar 2021 10:25
An: dnsdist at mailman.powerdns.com
Betreff: Re: [dnsdist] cache dnsdist not working for my setup

Hi,

On 2/9/21 9:41 AM, SAMI RAHAL via dnsdist wrote:
> I have adjusted access to the console, but now I have a problem with 
> the dnsdist log file
> 
> Fatal Lua error: [string "chunk"]:164: Caught exception: Unable to 
> open file '/var/log/dnsdist.log' for logging: Permission denied
> 
> ls -l /var/log/ 
> -rw-------  1 dnsdist dnsdist        0 Feb  8 03:21 dnsdist.log
> -rw-------  1 dnsdist dnsdist        0 Feb  7 19:59 dnsdist.log-20210208
> 
> 
> the log files are empty, I didn't have this problem before installing 
> version 1.5

dnsdist runs as the dnsdist user. 2 things might be the case

1. the /var/lib directory is not accessable to all users 2. a protection setting in the systemd service file might prevent thist (most likely ProtectSystem=full)

Have a look at what might be the culprit here.

--
Pieter Lexis
PowerDNS.COM BV -- https://www.powerdns.com _______________________________________________
dnsdist mailing list
dnsdist at mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


More information about the dnsdist mailing list