[Pi-Hole] No need of the lan.conf anymore for local dns
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user