« Unbound - Pihole » : différence entre les versions
| Ligne 256 : | Ligne 256 : | ||
== logs == | == logs == | ||
<syntaxhighlight lang="bash" line copy> | <syntaxhighlight lang="bash" line copy> | ||
pihole -t | sudo pihole -t | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Pour filtrer les logs pour une adresse IP spécifique (par exemple, 192.168.1.10), utilisez : | Pour filtrer les logs pour une adresse IP spécifique (par exemple, 192.168.1.10), utilisez : | ||
<syntaxhighlight lang="bash" line copy> | <syntaxhighlight lang="bash" line copy> | ||
pihole -t | grep 192.168.1.10 | sudo pihole -t | grep 192.168.1.10 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Vous pouvez également consulter les logs historiques dans le fichier : | Vous pouvez également consulter les logs historiques dans le fichier : | ||
<syntaxhighlight lang="bash" line copy> | <syntaxhighlight lang="bash" line copy> | ||
cat /var/log/pihole.log | grep 192.168.1.10 | sudo cat /var/log/pihole.log | grep 192.168.1.10 | ||
</syntaxhighlight> | </syntaxhighlight> | ||