Re: %1o/mvHiLJ
your router might have some settings for custom DNS routes.. so if you can figure out what your TV is talking to you could just route those to a non existing localhost address
alternatively feel free to use my Pihole config:
On your router
On your router assign any Linux/Mac machine (or a pi or windows, but i have no experience running a pihole in windows) a reserved IP address that matches the Ip-address scheme of the rest of your devices (192.168.0.200 in my case) and reboot the router and the linux/Mac. that way they'll re-register to the network with all the right flags.
On your pi-hole computer of choice (with docker-compose)
Install Docker on your machine.
On ubuntu: https://docs.docker.com/engine/install/ubuntu/ and https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
On mac: download Docker Desktop from docker.com.
open a terminal and make a new "pihole" directory somewhere in your user directory. in it insert the file below:
docker-compose.yml
version: "3"
services:
pihole:
container_name: pihole
hostname: HomeNuc
image: pihole/pihole:latest
ports:
- "192.168.0.200:53:53/tcp"
- "192.168.0.200:53:53/udp"
- "192.168.0.200:67:67/udp"
- "0.0.0.0:5000:80/tcp"
environment:
TZ: 'Europe/Stockholm'
WEBPASSWORD: 'INSERTYOURPASSHERE'
ServerIP: "192.168.0.200"
PIHOLE_DNS_: "1.1.1.1;1.0.0.1"
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
restart: unless-stopped
Make sure to insert your Time-zone on TZ, your web interface password of choice as well as the serverIp of the pi-hole itself. also make sure to fill in the network address of your pi-hole as the expose-to interface in your port list.
port 53 and 67 are for DNS requests, port 80->5000 is for the web interface
once done type "docker-compose up".
If you get port reserved errors you might need to disable the system built-in DNS server:
On mac: https://discourse.pi-hole.net/t/docker-unable-to-bind-to-port-53/45082/8
on Ubuntu: https://www.smarthomebeginner.com/run-pihole-in-docker-on-ubuntu-with-reverse-proxy/ (step 1 in that guide, just do the 2 systemctl commands, no need to edit your resolve files or remove anything).
You might need to open some ports using sudo ufw allow 53 67 80 && sudo ufw reload
if you are using the UFW firewall.
visit http://your-network-ip:5000 and verify that everything is up and running
Back on your router
go to "Prefered DNS settings" on your router and plug in the IP address of your pi-hole linux box without any ports, wait for devices to reconnect to your wifi and they should automatically pick up the preferred DNS.
You're done ;)
the pi-hole will report domains that you visit in its admin interface, if your TV adverts are still there, then find the domain in the log list for your TV and block it ;)