Skip to content

Instantly share code, notes, and snippets.

@andrepcg
Created June 12, 2019 09:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrepcg/5999203519c722004c463eb1494559f8 to your computer and use it in GitHub Desktop.
Save andrepcg/5999203519c722004c463eb1494559f8 to your computer and use it in GitHub Desktop.
Usar Pi-Hole em todos os devices da rede (excepto box IPTV da vodafone)
  1. Activar servidor DHCP no Pi-Hole
  2. Criar ficheiro /etc/dnsmasq.d/03-vodafone.conf
  3. Adicionar a seguinte configuração ao ficheiro
dhcp-host=<MAC ADDRESS DA TV BOX>,set:vodafone
dhcp-option=tag:vodafone,option:dns-server,<IP DO ROUTER DA VODAFONE>

Agora a Box continua a funcionar porque usa o DNS que o router da Vodafone lhe dá e todos os restantes dispositivos na rede utilizam o DNS anunciado pelo servidor DHCP que é o do Pi-Hole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment