1
0

[Pi-Hole] No need of the lan.conf anymore for local dns

This commit is contained in:
nicolas.dorier
2020-05-12 20:33:56 +09:00
parent f86b5dafc1
commit adbefbba5f
3 changed files with 0 additions and 16 deletions

View File

@@ -51,17 +51,3 @@ Then running again
```bash
docker logs pihole | grep random
```
## Adding custom entry to pi-hole dns
You can easily add your local domains to pi-hole.
Imagine you have a NAS (like synology) on your local network with IP `192.168.1.3`, and you want to access it through `synology.lan`.
```bash
local_dns_list="$(docker volume inspect generated_pihole_datadir -f "{{.Mountpoint}}")/lan.list"
# In most cases this will be /var/lib/docker/volumes/generated_pihole_datadir/_data/lan.list
echo "192.168.1.3 synology.lan" >> "$local_dns_list"
pihole.sh restartdns
```
You can now browse `http://synology.lan` to access your NAS.