You haven't read the documentation (the link I send), right? So, I'm out on this point, too. The timestamp is in your logs...
[1613145477.461288399] Best regards, Markus Von: dnsdist <dnsdist-boun...@mailman.powerdns.com> Im Auftrag von SAMI RAHAL via dnsdist Gesendet: Freitag, 12. Februar 2021 17:16 An: Betreff: Re: [dnsdist] cache dnsdist not working for my setup ---------- Begin Log config ------- --addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false,true)) addAction(AllRule(), LogAction("/var/log/dnsdist/dnsdist.log",false, true, false, false, true)) ---------- End Log config ------- here is an example of the log still without date 1613145474.792149035] Packet from adressip:46124 for 143.10.98.141.in-addr.arpa. PTR with id 55025 [1613145477.461288399] Packet from adressip:35901 for 15.27.226.41.in-addr.arpa. PTR with id 22949 [1613145477.462650650] Packet from adressip:36625 for 132.80.98.141.in-addr.arpa. PTR with id 10293 ------------- Begin Cache config ------- setPoolServerPolicy(leastOutstanding, "resolverT") pc = newPacketCache(10000, {maxTTL=86400, minTTL=0,temporaryFailureTTL=60, staleTTL=60, dontAge=false}) getPool("resolverT"):setCache(pc) addAction(AllRule(), PoolAction("resolverT")) ------------- End Cache config ------- with this configuration of the cache I have all the lost packets : Entries: 1084/10000 Hits: 4139 Misses: 3230 Deferred inserts: 1 Deferred lookups: 0 Lookup Collisions: 0 Insert Collisions: 0 TTL Too Shorts: 0 ________________________________ De : dnsdist <dnsdist-boun...@mailman.powerdns.com<mailto:dnsdist-boun...@mailman.powerdns.com>> de la part de dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> <dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com>> Envoyé : vendredi 12 février 2021 09:25 À : dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> Objet : dnsdist Digest, Vol 66, Issue 17 Send dnsdist mailing list submissions to dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> To subscribe or unsubscribe via the World Wide Web, visit https://mailman.powerdns.com/mailman/listinfo/dnsdist or, via email, send a message with subject or body 'help' to dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> You can reach the person managing the list at dnsdist-ow...@mailman.powerdns.com<mailto:dnsdist-ow...@mailman.powerdns.com> When replying, please edit your Subject line so it is more specific than "Re: Contents of dnsdist digest..." Today's Topics: 1. Re: cache dnsdist not working for my setup (SAMI RAHAL) ---------------------------------------------------------------------- Message: 1 Date: Fri, 12 Feb 2021 08:25:43 +0000 From: SAMI RAHAL <sami.ra...@topnetpro.tn<mailto:sami.ra...@topnetpro.tn>> To: "dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>" <dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>> Subject: Re: [dnsdist] cache dnsdist not working for my setup Message-ID: <2f4b94f00ace45418ecdb9d090875...@topnetpro.tn<mailto:2f4b94f00ace45418ecdb9d090875...@topnetpro.tn>> Content-Type: text/plain; charset="windows-1252" Hi Markus it gives me an empty file --addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false,true)) addAction(AllRule(), LogAction("/var/log/dnsdist/dnsdist.log", false, true, false,false,true)) ls -l /var/log/dnsdist/ total 0 -rw-r--r-- 1 dnsdist dnsdist 0 Feb 11 20:09 dnsdist.log ________________________________ De : dnsdist <dnsdist-boun...@mailman.powerdns.com<mailto:dnsdist-boun...@mailman.powerdns.com>> de la part de dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> <dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com>> Envoy? : jeudi 11 f?vrier 2021 13:00 ? : dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> Objet : dnsdist Digest, Vol 66, Issue 16 Send dnsdist mailing list submissions to dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> To subscribe or unsubscribe via the World Wide Web, visit https://mailman.powerdns.com/mailman/listinfo/dnsdist or, via email, send a message with subject or body 'help' to dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> You can reach the person managing the list at dnsdist-ow...@mailman.powerdns.com<mailto:dnsdist-ow...@mailman.powerdns.com> When replying, please edit your Subject line so it is more specific than "Re: Contents of dnsdist digest..." Today's Topics: 1. Re: cache dnsdist not working for my setup (Markus Ehrlicher) ---------------------------------------------------------------------- Message: 1 Date: Wed, 10 Feb 2021 15:13:37 +0000 From: Markus Ehrlicher <markus.ehrlic...@komsa.de<mailto:markus.ehrlic...@komsa.de>> To: "'dnsdist@mailman.powerdns.com'" <dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>> Subject: Re: [dnsdist] cache dnsdist not working for my setup Message-ID: <84806edf37eb45c6a13b60a6495e5...@komsa.de<mailto:84806edf37eb45c6a13b60a6495e5...@komsa.de>> Content-Type: text/plain; charset="iso-8859-1" https://dnsdist.org/rules-actions.html?highlight=logaction#LogAction LogAction([filename[, binary[, append[, buffered[, verboseOnly[, includeTimestamp]]]]]])? addAction(AllRule(), LogAction("/var/log/dnsdist/all_queries.log", false, true, false, false, true)) -----Urspr?ngliche Nachricht----- Von: dnsdist <dnsdist-boun...@mailman.powerdns.com<mailto:dnsdist-boun...@mailman.powerdns.com>> Im Auftrag von SAMI RAHAL via dnsdist Gesendet: Mittwoch, 10. Februar 2021 15:57 An: dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> Betreff: Re: [dnsdist] cache dnsdist not working for my setup Hi everything is working fine now, I have the log and the cache, last thing how to add the date in the log file Thank you everyone and sorry for this inconvenience ________________________________________ De : dnsdist <dnsdist-boun...@mailman.powerdns.com<mailto:dnsdist-boun...@mailman.powerdns.com>> de la part de dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> <dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com>> Envoy? : mercredi 10 f?vrier 2021 13:00 ? : dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> Objet : dnsdist Digest, Vol 66, Issue 14 Send dnsdist mailing list submissions to dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> To subscribe or unsubscribe via the World Wide Web, visit https://mailman.powerdns.com/mailman/listinfo/dnsdist or, via email, send a message with subject or body 'help' to dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> You can reach the person managing the list at dnsdist-ow...@mailman.powerdns.com<mailto:dnsdist-ow...@mailman.powerdns.com> When replying, please edit your Subject line so it is more specific than "Re: Contents of dnsdist digest..." Today's Topics: 1. Re: cache dnsdist not working for my setup (Otto Moerbeek) 2. Re: cache dnsdist not working for my setup (SAMI RAHAL) 3. Re: cache dnsdist not working for my setup (Kai) ---------------------------------------------------------------------- Message: 1 Date: Wed, 10 Feb 2021 10:18:25 +0100 From: Otto Moerbeek <o...@drijf.net<mailto:o...@drijf.net>> To: SAMI RAHAL <sami.ra...@topnetpro.tn<mailto:sami.ra...@topnetpro.tn>> Cc: "dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>" <dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>> Subject: Re: [dnsdist] cache dnsdist not working for my setup Message-ID: <ycok4egphpekw...@clue.drijf.net<mailto:ycok4egphpekw...@clue.drijf.net>> Content-Type: text/plain; charset=iso-8859-1 On Wed, Feb 10, 2021 at 07:04:34AM +0000, SAMI RAHAL via dnsdist wrote: > Hi > I proceeded as Markus said the permission problem is solved but the log file > is empty and I have the following message when I want to consult the traffic > in the console. > > showResponseLatency() > No traffic yet. > > PS I don't have these problems with version 1.3! When swicthing versions, it is very important to read the upgrade guide (and other docs) first. Also read and understand https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/ [https://s0.wp.com/i/blank.jpg]<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> Open Source Support: out in the open | PowerDNS Blog<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> blog.powerdns.com As an Open Source project, PowerDNS works hard to support its users and customers. We also love to work with our collaborators, our community, on projects inside and outside of PowerDNS. This way w... [https://s0.wp.com/i/blank.jpg]<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/<https://s0.wp.com/i/blank.jpg%5d%3chttps:/blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/>> Open Source Support: out in the open | PowerDNS Blog<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> [https://s0.wp.com/i/blank.jpg]<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> Open Source Support: out in the open | PowerDNS Blog<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> blog.powerdns.com As an Open Source project, PowerDNS works hard to support its users and customers. We also love to work with our collaborators, our community, on projects inside and outside of PowerDNS. This way w... blog.powerdns.com As an Open Source project, PowerDNS works hard to support its users and customers. We also love to work with our collaborators, our community, on projects inside and outside of PowerDNS. This way w? Only if you think for yourself first and give complete information to the list we can maybe help you. At the moment, your messages only cause noise on the list. -Otto > > Regards > > ________________________________________ > De : dnsdist > <dnsdist-boun...@mailman.powerdns.com<mailto:dnsdist-boun...@mailman.powerdns.com>> > de la part de > dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> > <dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com>> > Envoy? : mardi 9 f?vrier 2021 13:00 > ? : dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > Objet : dnsdist Digest, Vol 66, Issue 12 > > Send dnsdist mailing list submissions to > dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > > To subscribe or unsubscribe via the World Wide Web, visit > https://mailman.powerdns.com/mailman/listinfo/dnsdist > or, via email, send a message with subject or body 'help' to > > dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> > > You can reach the person managing the list at > > dnsdist-ow...@mailman.powerdns.com<mailto:dnsdist-ow...@mailman.powerdns.com> > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of dnsdist digest..." > > > Today's Topics: > > 1. Re: cache dnsdist not working for my setup (Pieter Lexis) > 2. Re: cache dnsdist not working for my setup (Markus Ehrlicher) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 9 Feb 2021 10:24:42 +0100 > From: Pieter Lexis > <pieter.le...@powerdns.com<mailto:pieter.le...@powerdns.com>> > To: dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > Subject: Re: [dnsdist] cache dnsdist not working for my setup > Message-ID: > <1c384ba0-5146-4f21-bfff-801b4c66e...@powerdns.com<mailto:1c384ba0-5146-4f21-bfff-801b4c66e...@powerdns.com>> > Content-Type: text/plain; charset=utf-8 > > 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 > > > ------------------------------ > > Message: 2 > Date: Tue, 9 Feb 2021 10:03:41 +0000 > From: Markus Ehrlicher > <markus.ehrlic...@komsa.de<mailto:markus.ehrlic...@komsa.de>> > To: "'dnsdist@mailman.powerdns.com'" > <dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>> > Subject: Re: [dnsdist] cache dnsdist not working for my setup > Message-ID: > <7034235e27fa4916b300db5450ab5...@komsa.de<mailto:7034235e27fa4916b300db5450ab5...@komsa.de>> > Content-Type: text/plain; charset="iso-8859-1" > > 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-boun...@mailman.powerdns.com<mailto:dnsdist-boun...@mailman.powerdns.com>> > Im Auftrag von > Pieter Lexis via dnsdist > Gesendet: Dienstag, 9. Februar 2021 10:25 > An: dnsdist@mailman.powerdns.com<mailto:dnsdist@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@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > https://mailman.powerdns.com/mailman/listinfo/dnsdist > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > dnsdist mailing list > dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > https://mailman.powerdns.com/mailman/listinfo/dnsdist > > > ------------------------------ > > End of dnsdist Digest, Vol 66, Issue 12 > *************************************** > _______________________________________________ > dnsdist mailing list > dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > https://mailman.powerdns.com/mailman/listinfo/dnsdist ------------------------------ Message: 2 Date: Wed, 10 Feb 2021 10:12:17 +0000 From: SAMI RAHAL <sami.ra...@topnetpro.tn<mailto:sami.ra...@topnetpro.tn>> To: Otto Moerbeek <o...@drijf.net<mailto:o...@drijf.net>> Cc: "dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>" <dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>> Subject: Re: [dnsdist] cache dnsdist not working for my setup Message-ID: <1612951969563.19...@topnetpro.tn<mailto:1612951969563.19...@topnetpro.tn>> Content-Type: text/plain; charset="iso-8859-1" Hello I'm sorry OTTO, but I'm pressed for time as soon as I migrated to version 1.5 I encountered quite a few problems! now I only have the problem of log (empty) and the cache which still does not work ----------Log config------------------------------ -- log all queries to a 'dndist.log' file, in text-mode (not binary) appending and unbuffered addAction(AllRule(), LogAction("/var/log/dnsdist/dnsdist.log", false, true, false)) -------------------------Cache config------------------------- ewServer({name="unbound",pool={"resolverT"},address="IP", qps=1000, order=1}) newServer({name="pdns-recursor",pool={"resolverT"},address="IP", order=2}) cacheresolv = newPacketCache(100000) getPool("resolverT"):setCache(cacheresolv) setStaleCacheEntriesTTL(86400) addAction(AllRule(), PoolAction("resolverT")) ________________________________________ De : Otto Moerbeek <o...@drijf.net<mailto:o...@drijf.net>> Envoy? : mercredi 10 f?vrier 2021 10:18 ? : SAMI RAHAL Cc : dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> Objet : Re: [dnsdist] cache dnsdist not working for my setup On Wed, Feb 10, 2021 at 07:04:34AM +0000, SAMI RAHAL via dnsdist wrote: > Hi > I proceeded as Markus said the permission problem is solved but the log file > is empty and I have the following message when I want to consult the traffic > in the console. > > showResponseLatency() > No traffic yet. > > PS I don't have these problems with version 1.3! When swicthing versions, it is very important to read the upgrade guide (and other docs) first. Also read and understand https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/ [https://s0.wp.com/i/blank.jpg]<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> Open Source Support: out in the open | PowerDNS Blog<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> blog.powerdns.com As an Open Source project, PowerDNS works hard to support its users and customers. We also love to work with our collaborators, our community, on projects inside and outside of PowerDNS. This way w... [https://s0.wp.com/i/blank.jpg]<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/<https://s0.wp.com/i/blank.jpg%5d%3chttps:/blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/>> Open Source Support: out in the open | PowerDNS Blog<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> [https://s0.wp.com/i/blank.jpg]<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> Open Source Support: out in the open | PowerDNS Blog<https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open/> blog.powerdns.com As an Open Source project, PowerDNS works hard to support its users and customers. We also love to work with our collaborators, our community, on projects inside and outside of PowerDNS. This way w... blog.powerdns.com As an Open Source project, PowerDNS works hard to support its users and customers. We also love to work with our collaborators, our community, on projects inside and outside of PowerDNS. This way w? Only if you think for yourself first and give complete information to the list we can maybe help you. At the moment, your messages only cause noise on the list. -Otto > > Regards > > ________________________________________ > De : dnsdist > <dnsdist-boun...@mailman.powerdns.com<mailto:dnsdist-boun...@mailman.powerdns.com>> > de la part de > dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> > <dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com>> > Envoy? : mardi 9 f?vrier 2021 13:00 > ? : dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > Objet : dnsdist Digest, Vol 66, Issue 12 > > Send dnsdist mailing list submissions to > dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > > To subscribe or unsubscribe via the World Wide Web, visit > https://mailman.powerdns.com/mailman/listinfo/dnsdist > or, via email, send a message with subject or body 'help' to > > dnsdist-requ...@mailman.powerdns.com<mailto:dnsdist-requ...@mailman.powerdns.com> > > You can reach the person managing the list at > > dnsdist-ow...@mailman.powerdns.com<mailto:dnsdist-ow...@mailman.powerdns.com> > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of dnsdist digest..." > > > Today's Topics: > > 1. Re: cache dnsdist not working for my setup (Pieter Lexis) > 2. Re: cache dnsdist not working for my setup (Markus Ehrlicher) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 9 Feb 2021 10:24:42 +0100 > From: Pieter Lexis > <pieter.le...@powerdns.com<mailto:pieter.le...@powerdns.com>> > To: dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > Subject: Re: [dnsdist] cache dnsdist not working for my setup > Message-ID: > <1c384ba0-5146-4f21-bfff-801b4c66e...@powerdns.com<mailto:1c384ba0-5146-4f21-bfff-801b4c66e...@powerdns.com>> > Content-Type: text/plain; charset=utf-8 > > 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 > > > ------------------------------ > > Message: 2 > Date: Tue, 9 Feb 2021 10:03:41 +0000 > From: Markus Ehrlicher > <markus.ehrlic...@komsa.de<mailto:markus.ehrlic...@komsa.de>> > To: "'dnsdist@mailman.powerdns.com'" > <dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com>> > Subject: Re: [dnsdist] cache dnsdist not working for my setup > Message-ID: > <7034235e27fa4916b300db5450ab5...@komsa.de<mailto:7034235e27fa4916b300db5450ab5...@komsa.de>> > Content-Type: text/plain; charset="iso-8859-1" > > 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-boun...@mailman.powerdns.com<mailto:dnsdist-boun...@mailman.powerdns.com>> > Im Auftrag von > Pieter Lexis via dnsdist > Gesendet: Dienstag, 9. Februar 2021 10:25 > An: dnsdist@mailman.powerdns.com<mailto:dnsdist@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@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > https://mailman.powerdns.com/mailman/listinfo/dnsdist > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > dnsdist mailing list > dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > https://mailman.powerdns.com/mailman/listinfo/dnsdist > > > ------------------------------ > > End of dnsdist Digest, Vol 66, Issue 12 > *************************************** > _______________________________________________ > dnsdist mailing list > dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> > https://mailman.powerdns.com/mailman/listinfo/dnsdist ------------------------------ Message: 3 Date: Wed, 10 Feb 2021 11:23:15 +0100 From: Kai <k...@xs4all.net<mailto:k...@xs4all.net>> To: dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> Subject: Re: [dnsdist] cache dnsdist not working for my setup Message-ID: <57b09646-de11-2939-940b-305c4742d...@xs4all.net<mailto:57b09646-de11-2939-940b-305c4742d...@xs4all.net>> Content-Type: text/plain; charset=utf-8; format=flowed Sami, On 10-02-2021 11:12, SAMI RAHAL via dnsdist wrote: > Hello > I'm sorry OTTO, but I'm pressed for time as soon as I migrated to version 1.5 > I encountered quite a few problems! > now I only have the problem of log (empty) and the cache which still > does not work > > ----------Log config------------------------------ > -- log all queries to a 'dndist.log' file, in text-mode (not binary) > appending and unbuffered addAction(AllRule(), > LogAction("/var/log/dnsdist/dnsdist.log", false, true, false)) > > -------------------------Cache config------------------------- > ewServer({name="unbound",pool={"resolverT"},address="IP", qps=1000, > order=1}) > newServer({name="pdns-recursor",pool={"resolverT"},address="IP", > order=2}) cacheresolv = newPacketCache(100000) > getPool("resolverT"):setCache(cacheresolv) > setStaleCacheEntriesTTL(86400) > addAction(AllRule(), PoolAction("resolverT")) IP is not an ipaddress ewServer is not a valid statement. How can we possibly test out your configuration if it is incomplete? Kai ------------------------------ Subject: Digest Footer _______________________________________________ dnsdist mailing list dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> https://mailman.powerdns.com/mailman/listinfo/dnsdist ------------------------------ End of dnsdist Digest, Vol 66, Issue 14 *************************************** _______________________________________________ dnsdist mailing list dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> https://mailman.powerdns.com/mailman/listinfo/dnsdist ------------------------------ Subject: Digest Footer _______________________________________________ dnsdist mailing list dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> https://mailman.powerdns.com/mailman/listinfo/dnsdist ------------------------------ End of dnsdist Digest, Vol 66, Issue 16 *************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210212/9d9829f8/attachment.htm> ------------------------------ Subject: Digest Footer _______________________________________________ dnsdist mailing list dnsdist@mailman.powerdns.com<mailto:dnsdist@mailman.powerdns.com> https://mailman.powerdns.com/mailman/listinfo/dnsdist ------------------------------ End of dnsdist Digest, Vol 66, Issue 17 ***************************************
_______________________________________________ dnsdist mailing list dnsdist@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/dnsdist