admin管理员组

文章数量:1193728

I've a pihole installation on macos (latest) over docker. A lot of the time it works well but some times browsers and apps get stuck trying to resolve dns. It's not dns of a blocked server but rather normal dns. And looking at pihole logs it seems like pihole responded with the dns of the request but somehow the response never reached the client app. How do I even start debugging this?

Here is my docker-compose.yml:

version: "3"

# More info at / and /
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
      - "8081:80/tcp"
    environment:
      TZ: 'Europe/London'
      # WEBPASSWORD: 'set a secure password here or it will be random'
    # Volumes store your data between container upgrades
    volumes:
      - './etc-pihole:/etc/pihole'
      - './etc-dnsmasq.d:/etc/dnsmasq.d'
    #   
    cap_add:
      - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
    restart: unless-stopped

本文标签: