From 7e9407a737c610feb191e81a7b79bfb6852a3d99 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sat, 16 Jun 2018 19:42:18 -0400 Subject: [PATCH] Fix list formatting in how to reload regex Also added a third method of just restarting the service. Signed-off-by: Mcat12 --- docs/ftldns/regex.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/ftldns/regex.md b/docs/ftldns/regex.md index 8b9ffb4..9af67a0 100644 --- a/docs/ftldns/regex.md +++ b/docs/ftldns/regex.md @@ -6,8 +6,10 @@ Our implementation is computationally inexpensive as each domain is only checked ## How to use regular expressions for blocking *FTL*DNS reads in regular expression filters from `/etc/pihole/regex.list` (one expression per line). To tell *FTL*DNS to reload the list, either: + - Execute the `>recompile-regex` API command (`echo ">recompile-regex" | nc localhost 4711`) - Send `SIGHUP` to `pihole-FTL` (`sudo killall -SIGHUP pihole-FTL`) +- Restart the service (`sudo service pihole-FTL restart`) ## Pi-hole regular expressions tutorial We provide a short but thorough introduction to our regular expressions implementation. This may come in handy if you are designing blocking rules (see also our cheat sheet below!). In our implementation, all characters match themselves except for the following special characters: `.[{}()\*+?|^$`. If you want to match those, you need to escape them like `\.` for a literal period, but no rule without exception (see character groups below for further details).