Hello Milan,
if you want to experiment with the code example just append the code to
the end of your config file. That should be enough (assuming you did not
change the default policy configuration significantly).
I have one additional question for you:
- Should IP addresses be somehow tied to most frequent
query names or
not? yes, it will be better to know frequented queries to domain
names.
Please send us an example of output you want to have, I would like to
see what information you are looking for.
Thank you for your time.
Petr Špaček @ CZ.NIC
On 24.7.2018 13:34, Sýkora Milan wrote:
> Hello Petr,
>
> This a good news, that query source IP would be planned in the future module
version.
>
> I would like to answer your related notes like:
> - How many 'most frequent' IP addresses you want to get? - It is better to do
the list as variable items, someone needs to list top 10 and someone 1000.
> - Should the number of addresses be configurable? yes
> - Do you consider query from the same IP but different port as 'different
client' or not? (E.g. clients behind NAT?) In my case, it is not a topic function.
> - Should IP addresses be somehow tied to most frequent query names or not? yes, it
will be better to know frequented queries to domain names.
> - Do you need a way to flush the table on fly? An option to clear statistic list and
count it since a specific time range sound as a good idea.
>
> In the case when I´m not so familiar with Lua, where should be added your code part?
>
> Best regards,
> Milan Sýkora
>
> -----Original Message-----
> From: knot-resolver-users [mailto:knot-resolver-users-bounces@lists.nic.cz] On Behalf
Of knot-resolver-users-request(a)lists.nic.cz
> Sent: Tuesday, July 24, 2018 12:00 PM
> To: knot-resolver-users(a)lists.nic.cz
> Subject: knot-resolver-users Digest, Vol 31, Issue 1
>
> Send knot-resolver-users mailing list submissions to
> knot-resolver-users(a)lists.nic.cz
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-resolver-users
> or, via email, send a message with subject or body 'help' to
> knot-resolver-users-request(a)lists.nic.cz
>
> You can reach the person managing the list at
> knot-resolver-users-owner(a)lists.nic.cz
>
> When replying, please edit your Subject line so it is more specific than "Re:
Contents of knot-resolver-users digest..."
>
>
> Today's Topics:
>
> 1. Knot resolver module stats - query source ip (Sýkora Milan)
> 2. Re: Knot resolver module stats - query source ip (Petr Špaček)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 24 Jul 2018 07:32:52 +0000
> From: Sýkora Milan <milan.sykora(a)cetin.cz>
> To: "knot-resolver-users(a)lists.nic.cz"
> <knot-resolver-users(a)lists.nic.cz>
> Subject: [knot-resolver-users] Knot resolver module stats - query
> source ip
> Message-ID: <365048c9e5ae48c699c079fee6343a5f(a)cewexch402.ad.cetin>
> Content-Type: text/plain; charset="iso-8859-2"
>
> Hello,
>
> I have your cool DNS resolver in version 2.3.0, I know that was released newest
version.
>
> My question is - is it possible to explore the most frequented IP (queries source) in
the module stats? Or exist any other way how to achieve it?
>
>
> Many thanks for your answer in the future, Best regards.
> Milan Sýkora
>
>
> Obsah této zprávy má výlučně komunikační charakter. Nepředstavuje návrh na uzavření
smlouvy či na její změnu ani přijetí případného návrhu. Smlouvy či jejich změny jsou
společností Česká telekomunikační infrastruktura a.s. uzavírány v písemné formě nebo v
podobě a postupem podle příslušných všeobecných podmínek společnosti Česká telekomunikační
infrastruktura a.s., a pokud jsou dohodnuty všechny náležitosti. Smlouvy jsou uzavírány
oprávněnou osobou na základě písemného pověření. Smlouvy o smlouvě budoucí jsou uzavírány
výhradně v písemné formě, vlastnoručně podepsané nebo s uznávaným elektronickým podpisem.
Podmínky, za nichž Česká telekomunikační infrastruktura a.s. přistupuje k jednání o
smlouvě a jakými se řídí, jsou dostupné
zde<https://www.cetin.cz/cs/jak-cetin-vyjednava-o-smlouve>.
>
> The content of this message is intended for communication purposes only. It does
neither represent any contract proposal, nor its amendment or acceptance of any potential
contract proposal. Česká telekomunikační infrastruktura a.s. concludes contracts or
amendments thereto in a written form or in the form and the procedure in accordance with
relevant general terms and conditions of Česká telekomunikační infrastruktura a.s., if all
requirements are agreed. Contracts are concluded by an authorized person entitled on the
basis of a written authorization. Contracts on a future contract are concluded solely in a
written form, self-signed or signed by means of an advanced electronic signature. The
conditions under which Česká telekomunikační infrastruktura a.s. negotiates contracts and
under which it proceeds are available
here<https://www.cetin.cz/en/jak-cetin-vyjednava-o-smlouve>.
>