Re: [dnsdist] cache dnsdist not working for my setup

2021-02-16 Thread SAMI RAHAL via dnsdist
Hi

I still have the issue of lost packets for my cache setup

- Begin Cache config ---
setPoolServerPolicy(leastOutstanding, "resolverT")
pc = newPacketCache(1, {maxTTL=86400, minTTL=0,temporaryFailureTTL=60, 
staleTTL=60, dontAge=false})
getPool("resolverT"):setCache(pc)
addAction(AllRule(), PoolAction("resolverT"))

- End Cache config ---

Entries: 5090/1
Hits: 69366
Misses: 51613
Deferred inserts: 7
Deferred lookups: 5
Lookup Collisions: 0
Insert Collisions: 0
TTL Too Shorts: 0






Cordialement, Sami Rahal Service Hosting DNS et Cloud Direction Technique & SI 
Siège Social TOPNET, Centre Urbain Nord Tél. :71185000 GSM :99 459 812



De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : vendredi 12 février 2021 17:30
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 20

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 16:30:15 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <84e42cf8d4c7438085a0edf1aab7e...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Hi Markus
I read the documentation except that I translate the documents from English to 
French to better understand and I did not find how to display the date in an 
understandable format

Thankyou







De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : vendredi 12 f?vrier 2021 17:23
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 19

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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: Fri, 12 Feb 2021 16:23:40 +
From: Markus Ehrlicher 
To: "'dnsdist@mailman.powerdns.com'" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <82d958172eff47aeb1d25141559df...@komsa.de>
Content-Type: text/plain; charset="iso-8859-1"

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  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(1, {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/1
Hits: 4139
Misses: 3230
Deferred inserts: 1
Deferred lookups: 0
Lookup Collisions: 0
Insert Collisions: 0
TTL Too Shorts: 0















De : dnsdist 
mailto:dnsdist-boun...@mailman.powerdns.com>>
 de la

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-12 Thread SAMI RAHAL via dnsdist
Hi Markus
I read the documentation except that I translate the documents from English to 
French to better understand and I did not find how to display the date in an 
understandable format

Thankyou







De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : vendredi 12 février 2021 17:23
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 19

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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: Fri, 12 Feb 2021 16:23:40 +
From: Markus Ehrlicher 
To: "'dnsdist@mailman.powerdns.com'" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <82d958172eff47aeb1d25141559df...@komsa.de>
Content-Type: text/plain; charset="iso-8859-1"

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  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(1, {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/1
Hits: 4139
Misses: 3230
Deferred inserts: 1
Deferred lookups: 0
Lookup Collisions: 0
Insert Collisions: 0
TTL Too Shorts: 0















De : dnsdist 
mailto:dnsdist-boun...@mailman.powerdns.com>>
 de la part de 
dnsdist-requ...@mailman.powerdns.com<mailto: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 mailto:sami.ra...@topnetpro.tn>>
To: "dnsdist@mailman.powerdns.com<mailto: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 dnsd

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-12 Thread Markus Ehrlicher via dnsdist
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  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(1, {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/1
Hits: 4139
Misses: 3230
Deferred inserts: 1
Deferred lookups: 0
Lookup Collisions: 0
Insert Collisions: 0
TTL Too Shorts: 0















De : dnsdist 
mailto:dnsdist-boun...@mailman.powerdns.com>>
 de la part de 
dnsdist-requ...@mailman.powerdns.com<mailto: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 +
From: SAMI RAHAL mailto:sami.ra...@topnetpro.tn>>
To: "dnsdist@mailman.powerdns.com<mailto: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 
mailto:dnsdist-boun...@mailman.powerdns.com>>
 de la part de 
dnsdist-requ...@mailman.powerdns.com<mailto: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 +
From: Markus Ehrlicher 
mailto:markus.ehrlic...@komsa.de>>
To: "'dnsd

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-12 Thread SAMI RAHAL via dnsdist
-- 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(1, {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/1
Hits: 4139
Misses: 3230
Deferred inserts: 1
Deferred lookups: 0
Lookup Collisions: 0
Insert Collisions: 0
TTL Too Shorts: 0














De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : vendredi 12 février 2021 09:25
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 17

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : jeudi 11 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 16

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 +
From: Markus Ehrlicher 
To: "'dnsdist@mailman.powerdns.com'" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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  Im Auftrag von SAMI RAHAL 
via dnsdist
Gesendet: Mittwoch, 10. Februar 2021 15:57
An: 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  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : mercredi 10 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 14

Send dnsdist mailing list submissions to
dnsdist@mailman.powerdns.com

To subscribe or unsubscribe via the World Wide Web, visit
https:

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-12 Thread SAMI RAHAL via dnsdist
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  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : jeudi 11 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 16

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 +
From: Markus Ehrlicher 
To: "'dnsdist@mailman.powerdns.com'" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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  Im Auftrag von SAMI RAHAL 
via dnsdist
Gesendet: Mittwoch, 10. Februar 2021 15:57
An: 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  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : mercredi 10 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 14

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 
To: SAMI RAHAL 
Cc: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: 
Content-Type: text/plain; charset=iso-8859-1

On Wed, Feb 10, 2021 at 07:04:34AM +, 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…



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  de la part de
> dnsdist-requ...@mailman.powerdns.com
> 
> Envoy? : mardi 9 f?vrier 2021 13:00
> ? : dnsdist@mailman.powerdns.com
> Objet : dnsdist Digest, V

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-10 Thread Markus Ehrlicher via dnsdist
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  Im Auftrag von SAMI RAHAL 
via dnsdist
Gesendet: Mittwoch, 10. Februar 2021 15:57
An: 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  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : mercredi 10 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 14

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 
To: SAMI RAHAL 
Cc: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: 
Content-Type: text/plain; charset=iso-8859-1

On Wed, Feb 10, 2021 at 07:04:34AM +, 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/

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  de la part de 
> dnsdist-requ...@mailman.powerdns.com 
> 
> Envoy? : mardi 9 f?vrier 2021 13:00
> ? : dnsdist@mailman.powerdns.com
> Objet : dnsdist Digest, Vol 66, Issue 12
>
> Send dnsdist mailing list submissions to
> 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
>
> You can reach the person managing the list at
> 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 
> To: dnsdist@mailman.powerdns.com
> Subject: Re: [dnsdist] cache dnsdist not working for my setup
> Message-ID: <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 dnsdist0 Feb  8 03:21 dnsdist.log
> > -rw---  1 dnsdist dnsdist0 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

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-10 Thread SAMI RAHAL via dnsdist
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  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : mercredi 10 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 14

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 
To: SAMI RAHAL 
Cc: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: 
Content-Type: text/plain; charset=iso-8859-1

On Wed, Feb 10, 2021 at 07:04:34AM +, 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/

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  de la part de 
> dnsdist-requ...@mailman.powerdns.com 
> Envoy? : mardi 9 f?vrier 2021 13:00
> ? : dnsdist@mailman.powerdns.com
> Objet : dnsdist Digest, Vol 66, Issue 12
>
> Send dnsdist mailing list submissions to
> 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
>
> You can reach the person managing the list at
> 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 
> To: dnsdist@mailman.powerdns.com
> Subject: Re: [dnsdist] cache dnsdist not working for my setup
> Message-ID: <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 dnsdist0 Feb  8 03:21 dnsdist.log
> > -rw---  1 dnsdist dnsdist0 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 +
> From: Markus Ehrlicher 
> To: "'dnsdist@mailman.powerdns.com'" 
> Subject: Re: [dnsdist] cache dnsdist not working for my set

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-10 Thread SAMI RAHAL via dnsdist
Hi Kai

here is my complete configuration:


-- listen for console connection with the given secret key
controlSocket("127.0.0.1")
setKey("BlM9FFCjk1QIij/LUxq+TQbsH9PUSe47KZiRIbeBdn8=")
setLocal('Server_ipadress:53')
setACL('0.0.0.0/0')
newServer({name="unbound",pool={"resolverT"},address="ipadress", qps=1000, 
order=1})
newServer({name="pdns-recursor",pool={"resolverT"},address="ipadress", order=2})
--- config cache ---
cacheresolv = newPacketCache(10)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)
addAction(AllRule(), PoolAction("resolverT"))
--newServer({address="8.8.8.8", pool="abuse"})
-- set the TC-bit (truncate) on ANY queries received over UDP, forcing a retry 
over TCP.
addAction(AndRule({QTypeRule(dnsdist.ANY), TCPRule(false)}), TCAction())
-- DDos protection, block for 5 minutes. 
https://dnsdist.org/guides/dynblocks.html
local dbr = dynBlockRulesGroup()
dbr:setQueryRate(30, 10, "Exceeded query rate", 3000)
dbr:setRCodeRate(dnsdist.NXDOMAIN, 20, 10, "Exceeded NXD rate", 3000)
dbr:setRCodeRate(dnsdist.SERVFAIL, 20, 10, "Exceeded ServFail rate", 300)
dbr:setQTypeRate(dnsdist.ANY, 5, 10, "Exceeded ANY rate", 300)
dbr:setResponseByteRate(1, 10, "Exceeded resp BW rate", 300)
-- send the queries for selected domain suffixes to the server
-- in the 'abuse' pool
addAction({"ezdns.it.", "xxx."}, PoolAction("abuse"))
-- send the queries from a selected subnet to the
-- abuse pool
addAction("192.168.1.0/24", PoolAction("abuse"))
-- pool, but only up to 100 qps
addAction("xxx.", QPSPoolAction(100, "abuse"))
-- to the abuse pool
function luarule(dq)
if(dq.qtype==dnsdist.NAPTR)
then
return DNSAction.Pool, "abuse" -- send to abuse pool
else
return DNSAction.None, ""  -- no action
end
end
-- and /64 for IPv6
addAction(MaxQPSIPRule(5, 24, 64), DropAction())
-- move the last rule to the first position
topRule()
-- drop queries for the following suffixes:
addAction("domain.org.", DropAction())
addAction("spectre.", DropAction())
-- called before we distribute a question
block=newDNSName("domains.org.")
truncateNMG = newNMG()
truncateNMG:addMask("213.244.0.0/16")
truncateNMG:addMask("2001:503:ba3e::2:30")
truncateNMG:addMask("fe80::/16")
print(string.format("Have %d entries in truncate NMG", truncateNMG:size()))
-- called to pick a downstream server, ignores 'up' status
counter=0
function luaroundrobin(servers, dq)
 counter=counter+1;
 return servers[1+(counter % #servers)]
end
-- split queries between the 'auth' pool and the regular one,
-- based on the RD flag
function splitSetup(servers, dq)
 if(dq.dh:getRD() == false)
 then
return firstAvailable.policy(getPoolServers("auth"), dq)
 else
return firstAvailable.policy(servers, dq)
 end
end
-- the 'maintenance' function is called every second
function maintenance()
 -- block all hosts that exceeded 20 qps over the past 10s,
 -- for 60s
 addDynBlocks(exceedQRate(20, 10), "Exceeded query rate", 60)
end
--addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, 
false,true))
addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false))


De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : mercredi 10 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 14

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 
To: SAMI RAHAL 
Cc: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: 
Content-Type: text/plain; charset=iso-8859-1

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-10 Thread Kai via dnsdist

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(10)
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

___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-10 Thread SAMI RAHAL via dnsdist
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(10)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)
addAction(AllRule(), PoolAction("resolverT"))



De : Otto Moerbeek 
Envoyé : mercredi 10 février 2021 10:18
À : SAMI RAHAL
Cc : dnsdist@mailman.powerdns.com
Objet : Re: [dnsdist] cache dnsdist not working for my setup

On Wed, Feb 10, 2021 at 07:04:34AM +, 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/

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  de la part de 
> dnsdist-requ...@mailman.powerdns.com 
> Envoyé : mardi 9 février 2021 13:00
> À : dnsdist@mailman.powerdns.com
> Objet : dnsdist Digest, Vol 66, Issue 12
>
> Send dnsdist mailing list submissions to
> 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
>
> You can reach the person managing the list at
> 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 
> To: dnsdist@mailman.powerdns.com
> Subject: Re: [dnsdist] cache dnsdist not working for my setup
> Message-ID: <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 dnsdist0 Feb  8 03:21 dnsdist.log
> > -rw---  1 dnsdist dnsdist0 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 +
> From: Markus Ehrlicher 
> To: "'dnsdist@mailman.powerdns.com'" 
> Subject: Re: [dnsdist] cache dnsdist not working for my setup
> Message-ID: <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-Use

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-10 Thread Otto Moerbeek via dnsdist
On Wed, Feb 10, 2021 at 07:04:34AM +, 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/

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  de la part de 
> dnsdist-requ...@mailman.powerdns.com 
> Envoyé : mardi 9 février 2021 13:00
> À : dnsdist@mailman.powerdns.com
> Objet : dnsdist Digest, Vol 66, Issue 12
> 
> Send dnsdist mailing list submissions to
> 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
> 
> You can reach the person managing the list at
> 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 
> To: dnsdist@mailman.powerdns.com
> Subject: Re: [dnsdist] cache dnsdist not working for my setup
> Message-ID: <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 dnsdist0 Feb  8 03:21 dnsdist.log
> > -rw---  1 dnsdist dnsdist0 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 +
> From: Markus Ehrlicher 
> To: "'dnsdist@mailman.powerdns.com'" 
> Subject: Re: [dnsdist] cache dnsdist not working for my setup
> Message-ID: <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  Im Auftrag von Pieter 
> Lexis via dnsdist
> Gesendet: Dienstag, 9. Februar 2021 10:25
> An: 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 dnsdist0 Feb  8 03:21 dnsdist.log
> > -rw---  1 dnsdist dnsdist0 Feb  7 19:59 dnsdist.log-20210208
> >
> >
> > the log files are empty, I didn't have this problem before installing
> > version 1.5
> 
> dnsdist ru

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-09 Thread SAMI RAHAL via dnsdist
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!

Regards


De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : mardi 9 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 12

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 
To: dnsdist@mailman.powerdns.com
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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 
To: "'dnsdist@mailman.powerdns.com'" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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  Im Auftrag von Pieter Lexis 
via dnsdist
Gesendet: Dienstag, 9. Februar 2021 10:25
An: 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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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
https://mailman.powerdns.com/mailman/listinfo/dnsdist


--

Subject: Digest Footer

___
dnsdist mailing list
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
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-09 Thread SAMI RAHAL via dnsdist
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!

Regards


De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : mardi 9 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 12

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 
To: dnsdist@mailman.powerdns.com
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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 
To: "'dnsdist@mailman.powerdns.com'" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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  Im Auftrag von Pieter Lexis 
via dnsdist
Gesendet: Dienstag, 9. Februar 2021 10:25
An: 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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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
https://mailman.powerdns.com/mailman/listinfo/dnsdist


--

Subject: Digest Footer

___
dnsdist mailing list
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
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-09 Thread Markus Ehrlicher via dnsdist
Hi,

I am using version 1.5.1. Your comparison with your old version 1.3 are not 
helpfull in my opinion, because in the meanwhile, there were made severall 
security improvements, as you can see in the changelog 
(https://dnsdist.org/changelog.html).

For example:
1.4.0: More sandboxing using systemd's features
1.5.0: Don't start as root within a systemd environment

So, 1.3 and 1.5 are not comparable.

Best regards,
Markus


-Ursprüngliche Nachricht-
Von: dnsdist  Im Auftrag von SAMI RAHAL 
via dnsdist
Gesendet: Dienstag, 9. Februar 2021 18:38
An: dnsdist@mailman.powerdns.com
Betreff: Re: [dnsdist] cache dnsdist not working for my setup

Thank you Pieter
But I encountered this problem when I installed version 1.5 with version 1.3 I 
don't have this problem here is my log configuration:
addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false)) 
thank you Markus , which version of dnsdist are you using ?





De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : mardi 9 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 12

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 
To: dnsdist@mailman.powerdns.com
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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 
To: "'dnsdist@mailman.powerdns.com'" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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  Im Auftrag von Pieter Lexis 
via dnsdist
Gesendet: Dienstag, 9. Februar 2021 10:25
An: 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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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 li

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-09 Thread SAMI RAHAL via dnsdist
Thank you Pieter
But I encountered this problem when I installed version 1.5 with version 1.3 I 
don't have this problem here is my log configuration:
addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false))
thank you Markus , which version of dnsdist are you using ?





De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : mardi 9 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 12

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 
To: dnsdist@mailman.powerdns.com
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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 +
From: Markus Ehrlicher 
To: "'dnsdist@mailman.powerdns.com'" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <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  Im Auftrag von Pieter Lexis 
via dnsdist
Gesendet: Dienstag, 9. Februar 2021 10:25
An: 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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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
https://mailman.powerdns.com/mailman/listinfo/dnsdist


--

Subject: Digest Footer

___
dnsdist mailing list
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
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-09 Thread Markus Ehrlicher via dnsdist
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  Im Auftrag von Pieter Lexis 
via dnsdist
Gesendet: Dienstag, 9. Februar 2021 10:25
An: 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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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
https://mailman.powerdns.com/mailman/listinfo/dnsdist
___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-09 Thread Pieter Lexis via dnsdist
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 dnsdist0 Feb  8 03:21 dnsdist.log
> -rw---  1 dnsdist dnsdist0 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
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-09 Thread SAMI RAHAL via dnsdist
Hi

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 dnsdist0 Feb  8 03:21 dnsdist.log
-rw---  1 dnsdist dnsdist0 Feb  7 19:59 dnsdist.log-20210208


the log files are empty, I didn't have this problem before installing version 
1.5

thank you 
Regards Sami







De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : mardi 9 février 2021 07:47
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 10

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Markus Ehrlicher)


--

Message: 1
Date: Tue, 9 Feb 2021 06:27:22 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612852075696.40...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Hi
when I use dnsdist -c I have this error : "The currently configured console key 
is not valid, please configure a valid key using the setKey() directive "
is it mandatory to configure this key in version 1.5? if yes please show me how 
i should proceed
thank you






De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : lundi 8 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 9

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)
   3. Re: cache dnsdist not working for my setup (Remi Gacogne)


--

Message: 1
Date: Sun, 7 Feb 2021 19:19:00 +0000
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612725572676.70...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Jacob
I installed version 1.5
when I try to access the console with the sudo dnsdist command
I have the following error:
Fatal error: binding socket to Server_IP: 53: Address already in use.
Also the log file is empty !! knowing that I do not have these two problems 
with version 1.3
here is my configuration:
--Main config---
-- listen for console connection with the given secret key
controlSocket("0.0.0.0")
--addLocal("0.0.0.0:5200")
setLocal('serverIP:53')
--addLocal('IP')
setACL('0.0.0.0/0')
newServer({name="unbound",pool={"resolverT"},address="@IP", qps=1000, order=1})
newServer({name="pdns-recursor",pool={"resolverT"},address="@IP", order=2})
--- config cache ---
cacheresolv = newPacketCache(10)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)
addAction(AllRule(), PoolAction("resolverT"))
---config Log ---
--addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, 
false,true))
addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false))




Regards




De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : dimanche 7 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 8

Send dnsdist mailing list submissions to
dnsdist@mailman.powerdns.com

To subscribe or unsubscribe via the World Wide Web,

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-08 Thread Markus Ehrlicher via dnsdist
Sorry to say, but the official documentation is absolutely clear about that:

https://dnsdist.org/guides/console.html

bets regards,
Markus



-Ursprüngliche Nachricht-
Von: dnsdist  Im Auftrag von SAMI RAHAL 
via dnsdist
Gesendet: Dienstag, 9. Februar 2021 07:27
An: dnsdist@mailman.powerdns.com
Betreff: Re: [dnsdist] cache dnsdist not working for my setup

Hi
when I use dnsdist -c I have this error : "The currently configured console key 
is not valid, please configure a valid key using the setKey() directive "
is it mandatory to configure this key in version 1.5? if yes please show me how 
i should proceed thank you 






De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : lundi 8 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 9

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)
   3. Re: cache dnsdist not working for my setup (Remi Gacogne)


--

Message: 1
Date: Sun, 7 Feb 2021 19:19:00 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612725572676.70...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Jacob
I installed version 1.5
when I try to access the console with the sudo dnsdist command
I have the following error:
Fatal error: binding socket to Server_IP: 53: Address already in use.
Also the log file is empty !! knowing that I do not have these two problems 
with version 1.3
here is my configuration:
--Main config---
-- listen for console connection with the given secret key
controlSocket("0.0.0.0")
--addLocal("0.0.0.0:5200")
setLocal('serverIP:53')
--addLocal('IP')
setACL('0.0.0.0/0')
newServer({name="unbound",pool={"resolverT"},address="@IP", qps=1000, order=1})
newServer({name="pdns-recursor",pool={"resolverT"},address="@IP", order=2})
--- config cache ---
cacheresolv = newPacketCache(10)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)
addAction(AllRule(), PoolAction("resolverT"))
---config Log ---
--addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, 
false,true))
addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false))




Regards




De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : dimanche 7 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 8

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)


--

Message: 1
Date: Sat, 6 Feb 2021 18:35:49 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612636581163.54...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"




Hi Remi
can I use version 1.6 in production?


De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : samedi 6 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 7

Send dnsdist mailing list submissions to
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 wi

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-08 Thread SAMI RAHAL via dnsdist
Hi 
when I use dnsdist -c I have this error : "The currently configured console key 
is not valid, please configure a valid key using the setKey() directive "
is it mandatory to configure this key in version 1.5? if yes please show me how 
i should proceed
thank you 






De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : lundi 8 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 9

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)
   3. Re: cache dnsdist not working for my setup (Remi Gacogne)


--

Message: 1
Date: Sun, 7 Feb 2021 19:19:00 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612725572676.70...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Jacob
I installed version 1.5
when I try to access the console with the sudo dnsdist command
I have the following error:
Fatal error: binding socket to Server_IP: 53: Address already in use.
Also the log file is empty !! knowing that I do not have these two problems 
with version 1.3
here is my configuration:
--Main config---
-- listen for console connection with the given secret key
controlSocket("0.0.0.0")
--addLocal("0.0.0.0:5200")
setLocal('serverIP:53')
--addLocal('IP')
setACL('0.0.0.0/0')
newServer({name="unbound",pool={"resolverT"},address="@IP", qps=1000, order=1})
newServer({name="pdns-recursor",pool={"resolverT"},address="@IP", order=2})
--- config cache ---
cacheresolv = newPacketCache(10)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)
addAction(AllRule(), PoolAction("resolverT"))
---config Log ---
--addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, 
false,true))
addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false))




Regards




De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : dimanche 7 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 8

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)


--

Message: 1
Date: Sat, 6 Feb 2021 18:35:49 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612636581163.54...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"




Hi Remi
can I use version 1.6 in production?


De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : samedi 6 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 7

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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 

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-08 Thread Remi Gacogne via dnsdist

Hi,

On 2/8/21 7:09 AM, Jacob Bunk Nielsen via dnsdist wrote:

On 07/02/2021 20.19, SAMI RAHAL via dnsdist wrote:

Thank you Jacob
I installed version 1.5
when I try to access the console with the sudo dnsdist command
I have the following error:
Fatal error: binding socket to Server_IP: 53: Address already in use.


Did you remember to stop dnsdist 1.3 before upgrading?


Note that if you are trying to access the console, not start the daemon, 
you should be running "dnsdist -c" and dnsdist should not be trying to 
listen to any port. Are you sure you did not forget the "-c" part?


It's been a long time since I ran 1.3, and I don't remember if there 
were any caveats of the 1.3->1.4 upgrade except many types getting new 
names.


I don't think so, but the upgrade guide [1] should know.

[1]: https://dnsdist.org/upgrade_guide.html#x-to-1-4-0

Best regards,
--
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/
___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-07 Thread Jacob Bunk Nielsen via dnsdist

Hi

On 07/02/2021 20.19, SAMI RAHAL via dnsdist wrote:

Thank you Jacob
I installed version 1.5
when I try to access the console with the sudo dnsdist command
I have the following error:
Fatal error: binding socket to Server_IP: 53: Address already in use.


Did you remember to stop dnsdist 1.3 before upgrading?

What's listening on port 53?

"sudo netstat -nlp | grep ':53'" can probably give you a good hint.

It's been a long time since I ran 1.3, and I don't remember if there 
were any caveats of the 1.3->1.4 upgrade except many types getting new 
names.


Best regards,

Jacob

___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-07 Thread SAMI RAHAL via dnsdist
Thank you Jacob 
I installed version 1.5
when I try to access the console with the sudo dnsdist command
I have the following error:
Fatal error: binding socket to Server_IP: 53: Address already in use.
Also the log file is empty !! knowing that I do not have these two problems 
with version 1.3
here is my configuration:
--Main config---
-- listen for console connection with the given secret key
controlSocket("0.0.0.0")
--addLocal("0.0.0.0:5200")
setLocal('serverIP:53')
--addLocal('IP')
setACL('0.0.0.0/0')
newServer({name="unbound",pool={"resolverT"},address="@IP", qps=1000, order=1})
newServer({name="pdns-recursor",pool={"resolverT"},address="@IP", order=2})
--- config cache ---
cacheresolv = newPacketCache(10)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)
addAction(AllRule(), PoolAction("resolverT"))
---config Log ---
--addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, 
false,true))
addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false))




Regards




De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : dimanche 7 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 8

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)


------------------------------

Message: 1
Date: Sat, 6 Feb 2021 18:35:49 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612636581163.54...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"




Hi Remi
can I use version 1.6 in production?


De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : samedi 6 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 7

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Remi Gacogne)
   3. Re: DNS views using DNSDIST (Jahanzeb Arshad)


------

Message: 1
Date: Fri, 5 Feb 2021 18:12:55 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612548806918.29...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Hi Jacob
i use tcpdump :
tcpdump -vvv -s O -l -n port 53 | grep domaine.tld
 Always dnsdist contact my two backend resolvers





De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : vendredi 5 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 6

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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. cache dnsdist not working for my setup (SAMI RAHAL)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)


--

Message: 1
D

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-07 Thread Jacob Bunk Nielsen via dnsdist

Hi Sami

On 06/02/2021 19.35, SAMI RAHAL via dnsdist wrote:

Hi Remi
can I use version 1.6 in production?


You can, but it's not recommended unless you want to run an alpha 
version. The latest released version is 1.5.1:


https://blog.powerdns.com/2020/10/01/dnsdist-1-5-1-released/

Best regards,

Jacob

___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-06 Thread SAMI RAHAL via dnsdist




Hi Remi 
can I use version 1.6 in production?


De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : samedi 6 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 7

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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)
   2. Re: cache dnsdist not working for my setup (Remi Gacogne)
   3. Re: DNS views using DNSDIST (Jahanzeb Arshad)


--

Message: 1
Date: Fri, 5 Feb 2021 18:12:55 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612548806918.29...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Hi Jacob
i use tcpdump :
tcpdump -vvv -s O -l -n port 53 | grep domaine.tld
 Always dnsdist contact my two backend resolvers





De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoy? : vendredi 5 f?vrier 2021 13:00
? : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 6

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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. cache dnsdist not working for my setup (SAMI RAHAL)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)


--

Message: 1
Date: Fri, 5 Feb 2021 08:59:33 +0000
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612515606492.42...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Hello

dnsdist packet cache is not working form my setup

  *   Operating system: CentOS7 (x86_64)

  *   Software version: dnsdist 1.3.0

My setup:


--- config cache ---
cacheresolv = newPacketCache(10, 86400, 0, 60, 60, true)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)

addAction(AllRule(), PoolAction("resolverT"))


Can somebody help me please




Cordialement, Sami Rahal Service Hosting DNS et Cloud Direction Technique & SI 
Si?ge Social TOPNET, Centre Urbain Nord T?l. :71185000 GSM :99 459 812
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210205/44929ca9/attachment-0001.htm>

------

Message: 2
Date: Fri, 5 Feb 2021 10:30:49 +0100
From: Jacob Bunk Nielsen 
To: dnsdist@mailman.powerdns.com
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: 
Content-Type: text/plain; charset=windows-1252; format=flowed

Hi Sami


On 05/02/2021 09.59, SAMI RAHAL via dnsdist wrote:
>
> dnsdist packet cache is not working form my setup
>
How do you know that it's not working?


Best regards,

Jacob




--

Subject: Digest Footer

___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


--

End of dnsdist Digest, Vol 66, Issue 6
**


--------------

Message: 2
Date: Fri, 5 Feb 2021 20:00:30 +0100
From: Remi Gacogne 
To: "dnsdist@mailman.powerdns.com" 
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: <094e68eb-694b-6505-726c-de0a0992f...@powerdns.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi Sami,

On 2/5/21 7:12 PM, SAMI RAHAL via dnsdist wrote:
 > Hi Jacob
 > i use tcpdump :
 > tcpdump -vvv -s O -l -n port 53 | grep domaine.tld
 >   Always dnsdist contact my two backend resolvers

How are you sending the queries? If you are using dig, please check with
+nocookie since the content of EDNS cookie is busting d

Re: [dnsdist] cache dnsdist not working for my setup

2021-02-05 Thread Remi Gacogne via dnsdist

Hi Sami,

On 2/5/21 7:12 PM, SAMI RAHAL via dnsdist wrote:
> Hi Jacob
> i use tcpdump :
> tcpdump -vvv -s O -l -n port 53 | grep domaine.tld
>   Always dnsdist contact my two backend resolvers

How are you sending the queries? If you are using dig, please check with 
+nocookie since the content of EDNS cookie is busting dnsdist's packet 
cache. 1.6.0 will ignore these cookies but you are running 1.3.0 which 
is a bit old.


Best regards,
--
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/
___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-05 Thread SAMI RAHAL via dnsdist
Hi Jacob 
i use tcpdump :
tcpdump -vvv -s O -l -n port 53 | grep domaine.tld
 Always dnsdist contact my two backend resolvers





De : dnsdist  de la part de 
dnsdist-requ...@mailman.powerdns.com 
Envoyé : vendredi 5 février 2021 13:00
À : dnsdist@mailman.powerdns.com
Objet : dnsdist Digest, Vol 66, Issue 6

Send dnsdist mailing list submissions to
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

You can reach the person managing the list at
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. cache dnsdist not working for my setup (SAMI RAHAL)
   2. Re: cache dnsdist not working for my setup (Jacob Bunk Nielsen)


--

Message: 1
Date: Fri, 5 Feb 2021 08:59:33 +
From: SAMI RAHAL 
To: "dnsdist@mailman.powerdns.com" 
Subject: [dnsdist] cache dnsdist not working for my setup
Message-ID: <1612515606492.42...@topnetpro.tn>
Content-Type: text/plain; charset="iso-8859-1"

Hello

dnsdist packet cache is not working form my setup

  *   Operating system: CentOS7 (x86_64)

  *   Software version: dnsdist 1.3.0

My setup:


--- config cache ---
cacheresolv = newPacketCache(10, 86400, 0, 60, 60, true)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)

addAction(AllRule(), PoolAction("resolverT"))


Can somebody help me please




Cordialement, Sami Rahal Service Hosting DNS et Cloud Direction Technique & SI 
Si?ge Social TOPNET, Centre Urbain Nord T?l. :71185000 GSM :99 459 812
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210205/44929ca9/attachment-0001.htm>

--

Message: 2
Date: Fri, 5 Feb 2021 10:30:49 +0100
From: Jacob Bunk Nielsen 
To: dnsdist@mailman.powerdns.com
Subject: Re: [dnsdist] cache dnsdist not working for my setup
Message-ID: 
Content-Type: text/plain; charset=windows-1252; format=flowed

Hi Sami


On 05/02/2021 09.59, SAMI RAHAL via dnsdist wrote:
>
> dnsdist packet cache is not working form my setup
>
How do you know that it's not working?


Best regards,

Jacob




--

Subject: Digest Footer

___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


--

End of dnsdist Digest, Vol 66, Issue 6
**
___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


Re: [dnsdist] cache dnsdist not working for my setup

2021-02-05 Thread Jacob Bunk Nielsen via dnsdist

Hi Sami


On 05/02/2021 09.59, SAMI RAHAL via dnsdist wrote:


dnsdist packet cache is not working form my setup


How do you know that it's not working?


Best regards,

Jacob


___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


[dnsdist] cache dnsdist not working for my setup

2021-02-05 Thread SAMI RAHAL via dnsdist
Hello

dnsdist packet cache is not working form my setup

  *   Operating system: CentOS7 (x86_64)

  *   Software version: dnsdist 1.3.0

My setup:


--- config cache ---
cacheresolv = newPacketCache(10, 86400, 0, 60, 60, true)
getPool("resolverT"):setCache(cacheresolv)
setStaleCacheEntriesTTL(86400)

addAction(AllRule(), PoolAction("resolverT"))


Can somebody help me please




Cordialement, Sami Rahal Service Hosting DNS et Cloud Direction Technique & SI 
Siège Social TOPNET, Centre Urbain Nord Tél. :71185000 GSM :99 459 812
___
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist