Date : 12/01/2026 20:30 Priorite : MOYENNE Effort : S (2-4h)
Installer Pi-hole pour :
*.33800.nowhere84.com resolvent directement vers IPs locales sur le reseau AVANT (actuel)
┌─────────────────────────────────────────────────────────┐
│ Anbernic/PC (192.168.1.x) │
│ │ │
│ v │
│ Box DNS (o2switch) ───> 82.65.119.221 ───> nginx │
│ │ │ │
│ └── Latence Internet ───┘ │
└─────────────────────────────────────────────────────────┘
APRES (avec Pi-hole)
┌─────────────────────────────────────────────────────────┐
│ Anbernic/PC (192.168.1.x) │
│ │ │
│ v │
│ Pi-hole (192.168.1.X) ──> Domaine local connu ? │
│ │ │ │
│ ┌────┴────┐ ┌────┴────┐ │
│ │ OUI │ │ NON │ │
│ v │ v │ │
│ IP locale │ Upstream DNS │ │
│ direct │ (o2switch) │ │
│ │ │ │ │
│ gitlab │ google.com │ │
│ .33800... │ │ │ │
│ → 192.168. │ v │ │
│ 1.104 │ Resolution │ │
│ │ normale │ │
└──────────────┴───────────────┴─────────┘
| Option | Pour | Contre |
|---|---|---|
| prod-portainer | Deja en place, fiable | Un container de plus |
| Container LXC dedie | Isole | Plus de maintenance |
| Nginx VM | Logique reseau | Charge supplementaire |
Recommandation : Container Docker sur prod-portainer (simple, maintenable)
# /mnt/stock_8to/33800-stack/docker/stacks/pihole/docker-compose.yml
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
hostname: pihole-33800
ports:
- "53:53/tcp" # DNS TCP
- "53:53/udp" # DNS UDP
- "8053:80/tcp" # Web UI
environment:
TZ: 'Europe/Paris'
WEBPASSWORD: 'MyUlia75$w'
FTLCONF_LOCAL_IPV4: '192.168.1.12'
PIHOLE_DNS_: '8.8.8.8;8.8.4.4'
volumes:
- ./etc-pihole:/etc/pihole
- ./etc-dnsmasq.d:/etc/dnsmasq.d
restart: unless-stopped
cap_add:
- NET_ADMIN
networks:
default:
driver: bridge
| Domaine | IP Locale | Service |
|---|---|---|
*.33800.nowhere84.com |
192.168.1.104 | Nginx (reverse proxy) |
pve.local |
192.168.1.4 | Proxmox PVE |
proxmox.local |
192.168.1.155 | Proxmox 155 |
prod-portainer.local |
192.168.1.12 | Docker PROD |
gitlab.local |
192.168.1.196 | GitLab |
# /etc/dnsmasq.d/02-local-domains.conf
# Wildcard 33800 → nginx local
address=/33800.nowhere84.com/192.168.1.104
# Machines locales
address=/pve.local/192.168.1.4
address=/proxmox.local/192.168.1.155
address=/prod-portainer.local/192.168.1.12
address=/gitlab.local/192.168.1.196
address=/nginx.local/192.168.1.104
address=/dev-portainer.local/192.168.1.51
address=/jellyfin.local/192.168.1.199
address=/vscode.local/192.168.1.154
address=/win11.local/192.168.1.30
Box Orange/Free → DHCP → DNS = 192.168.1.12
Configurer chaque appareil pour utiliser Pi-hole comme DNS.
Attente validation avant deploiement.