Line 74:
Line 74:
=== I want to add a pihole ===
=== I want to add a pihole ===
−
If you wan to add a pihole to remove some ads. The easy solution is to put it as dnscache Forwarder property, but the result is you might get generic results for your server. <syntaxhighlight lang="bash">
+
If you want to add a pihole to remove some ads. The easy solution is to put it as dnscache Forwarder property, but the result is you might get generic results for your server.
−
config setprop dnscache Forwarder mypiholeip
+
+
Also you might fails your email spam check based on dns. <syntaxhighlight lang="bash">
+
config setprop dnscache Forwarder mypiholeip # <=== do not do this
</syntaxhighlight>
</syntaxhighlight>
−
Another option could be to play at the dhcpd level and do not mess with the server but, this will prevent the lan pc to get local domains from the SME, unless you then specify to the pihole to ask to your sme for known local domains. See [[Pihole]]
+
The good option is not to filter DNS for the Server, but to act on DNS for your client on the LAN. This is a two step setting :
+
+
# set pihole as your dns server via dhcp setting
+
# specify to the pihole to ask to your sme for known local domains.
+
+
See [[Pihole]]
<br />
<br />