[collectd] Incomplete patch to differentiate traffic for dns server
Alessandro Iurlano
alessandro.iurlano at gmail.com
Mon Sep 22 17:26:58 CEST 2008
Hello.
Here is an incomplete patch to collectd I made to differentiate dns
traffic on our DNS cache servers.
Basically it adds a function to get the list of local ip addresses
from libpcap. Then whenever a dns query packet is captured, it is
checked for its destination address.
If it is local, the local counter is incremented.
The patch is not yet working. But debug output from the part that
discriminates destination addresses has proved to be correct.
No testing at all has been done for ip v6 even if some code exists in the patch.
Any critics, suggestion, help, contributions or directions are really
appreciated.
The aim of this patch is to be able to know how much a dns cache is
effective, that is, how many queries are satisfied locally and how
many still require access to another dns server.
Thanks,
Alessandro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dns-differentiate-local-from-remote-queries.patch
Type: text/x-patch
Size: 8466 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080922/6d2b8a48/attachment.bin
More information about the collectd
mailing list