lk/distros/arch/pi-hole-server.md

50 lines
961 B
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "pi-hole-server"
tags: [ "Documentation", "distros" ]
---
2020-01-02 00:04:35 +00:00
2021-09-19 12:14:26 +00:00
> yay -S pi-hole-server
2020-01-02 00:04:35 +00:00
2021-09-19 12:14:26 +00:00
> sudo systemctl enable --now pihole-FTL
2020-01-02 00:04:35 +00:00
2021-09-19 12:14:26 +00:00
> sudo systemctl disable --now systemd-resolved
2020-01-02 00:04:35 +00:00
2021-09-19 12:14:26 +00:00
Add yourself as a pihole user, then logout, and log back in.
2020-01-02 00:04:35 +00:00
2021-09-19 12:14:26 +00:00
> sudo usermod -aG pihole $USER
2020-01-02 00:04:35 +00:00
Remove that google dns server.
2021-09-19 12:14:26 +00:00
> pihole -a setdns 9.9.9.9 1.0.0.1
2020-01-02 00:04:35 +00:00
Disable pihole password by setting a blank password.
> pihole -a -p
2021-09-19 12:14:26 +00:00
Get a new list of blocked domains, then reload:
> pihole -g -r
Every so often, run `pihole -g` again (perhaps put it in crontab).
2020-01-02 00:04:35 +00:00
# Configure cloudflare DNS
2021-09-19 12:14:26 +00:00
This is optional.
2020-01-02 00:04:35 +00:00
> yay -S cloudflared-bin
echo "proxy-dns: true
proxy-dns-upstream:
- https://1.0.0.1/dns-query
- https://1.1.1.1/dns-query
- https://2606:4700:4700::1111/dns-query
- https://2606:4700:4700::1001/dns-query
proxy-dns-port: 5053
proxy-dns-address: 0.0.0.0" > /etc/cloudflared/cloudflared.yml
echo "
PRIVACYLEVEL=0
IGNORE_LOCALHOST=no
AAAA_QUERY_ANALYSIS=yes