summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/logging/patterns/dnsmasq
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-09-25 14:01:32 +0200
committermakefu <github@syntax-fehler.de>2019-09-25 14:01:32 +0200
commitc11c3544abd9ec2702c61b7ae114270791a57371 (patch)
tree0c2408a644e1270777ffc3cb29c0b6e6dca4ec67 /makefu/2configs/logging/patterns/dnsmasq
parent0fbd5ff5631abf062d9cb318035a794a6d47260d (diff)
ma logging: init server
Diffstat (limited to 'makefu/2configs/logging/patterns/dnsmasq')
-rw-r--r--makefu/2configs/logging/patterns/dnsmasq15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefu/2configs/logging/patterns/dnsmasq b/makefu/2configs/logging/patterns/dnsmasq
new file mode 100644
index 000000000..c1e700d5e
--- /dev/null
+++ b/makefu/2configs/logging/patterns/dnsmasq
@@ -0,0 +1,15 @@
+BLOCKLIST [\/\w\.]+
+DOMAIN [\w\.\-]+
+DNSID \d+
+PORT \d+
+DNSRESPONSE cached|reply|forwarded|query
+# TODO: there are some strange responses for certain queries like <CNAME> or ...
+IPORWORD %{IP}|[<>\.\/\w>]+
+
+# TODO use public suffix list by mozilla
+TLD [a-z]{2,63}
+# matches CCSLD and TLD together (e.g. co.uk )
+CCSLD_TLD [a-z]+\.uk
+# actually after a CCTLD this would be the third level domain ...
+PUBLIC_SUFFIX (xn--)?%{FUNCTIONAL_SLD}\.(%{CCSLD_TLD}|%{TLD})
+FUNCTIONAL_SLD [a-z0-9-]{1,63}