Saltar al contenido
RedesPrincipiante

Cómo instalar Pi-hole

Bloquea anuncios y rastreadores en toda tu red instalando Pi-hole en tu servidor doméstico paso a paso.

por HomeServersGuide Team1 min de lectura

Pi-hole blocks ads and trackers at the DNS level for every device on your network — no client software required. Here's how to run it with Docker.

Prerequisites

  • A home server with Docker installed
  • A static IP for the server (set a DHCP reservation on your router)

Step 1: Create the Compose file

services:
  pihole:
    image: pihole/pihole:latest
    container_name: pihole
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "8090:80/tcp"
    environment:
      TZ: "Europe/Berlin"
      WEBPASSWORD: "change-me"
    volumes:
      - ./etc-pihole:/etc/pihole
      - ./etc-dnsmasq.d:/etc/dnsmasq.d
    restart: unless-stopped

Step 2: Start Pi-hole

docker compose up -d

Step 3: Open the dashboard

Go to http://your-server-ip:8090/admin and log in with the password you set.

Step 4: Point your network at Pi-hole

The best option is to set Pi-hole as the DNS server in your router's DHCP settings, so every device uses it automatically. Alternatively, set it per-device.

Step 5: Verify it's working

Browse a few sites — many ads should vanish. The dashboard shows queries and the percentage blocked in real time.

Tips

  • Add reputable blocklists under Adlists, but don't overdo it to avoid breakage.
  • Use the allowlist to fix any site that misbehaves.
  • Consider AdGuard Home if you want encrypted DNS built in.

That's it — one small container now cleans up browsing for your whole home.

Artículos relacionados

RedesIntermedio

Guía de redes para servidores domésticos

Proxies inversos, DNS, VLAN y acceso remoto seguro: da a tus servicios nombres limpios y accesibles.

1 min de lectura
Primeros pasosPrincipiante

La guía completa del servidor doméstico para principiantes

De cero a un servidor doméstico en funcionamiento: elige hardware, selecciona un sistema operativo, despliega tus primeras apps y mantén todo seguro y respaldado.

2 min de lectura
ContenedoresPrincipiante

Cómo instalar Docker en Ubuntu

Un tutorial paso a paso para instalar Docker Engine y Docker Compose en Ubuntu Server y ejecutar tu primer contenedor.

1 min de lectura