diff --git a/Generated/pihole/02-lan.conf b/Generated/pihole/02-lan.conf deleted file mode 100644 index 5b53c98..0000000 --- a/Generated/pihole/02-lan.conf +++ /dev/null @@ -1 +0,0 @@ -addn-hosts=/etc/pihole/lan.list diff --git a/docker-compose-generator/docker-fragments/opt-add-pihole.yml b/docker-compose-generator/docker-fragments/opt-add-pihole.yml index e562af5..b93b7e1 100644 --- a/docker-compose-generator/docker-fragments/opt-add-pihole.yml +++ b/docker-compose-generator/docker-fragments/opt-add-pihole.yml @@ -16,7 +16,6 @@ services: ports: - "53:53/udp" volumes: - - "./pihole/02-lan.conf:/etc/dnsmasq.d/02-lan.conf:ro" - "./pihole/resolv.conf:/etc/resolv.conf:ro" - "pihole_datadir:/etc/pihole" volumes: diff --git a/docs/pihole.md b/docs/pihole.md index 404ac02..1ec80c7 100644 --- a/docs/pihole.md +++ b/docs/pihole.md @@ -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.