Skip to content

[Bug] Local domain resolution suddenly stopped working #2562

@WildeBeast2521

Description

@WildeBeast2521

This is a: BUG

Details

I'm using both DHCP and DNS from Pi-Hole on my Ubuntu Server machine. When using Pi-Hole as DHCP, it automatically fills in the DNS servers for the clients as itself. So for example, if my server is on 192.168.100.10 and fe80::abcd:efg:hijk:12l3, these are the DNS servers for each client.
Today, suddenly all my local domain resolutions are failing (except on the DNS server itself) from my client devices. When I look up a local device with nslookup, e.g. mobile.home.arpa (home.arpa is the domain name I have set in Pi-Hole), it returns:

nslookup mobile.home.arpa
Server:  UnKnown
Address:  fe80::1

*** UnKnown can't find mobile.home.arpa: Non-existent domain

I noticed that the address fe80::1 looked odd so I pinged the address and it actually is the local-link address of the DNS server:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute        <======
       valid_lft forever preferred_lft forever

But it seems like it's the loopback address? So I tried adding the local-link address that I mentioned above (fe80::abcd:efg:hijk:12l3) into my router, and surely enough, domain resolutions started to work again:

nslookup mobile.home.arpa
Server:  dns
Address:  fe80::abcd:efg:hijk:12l3

Name:    mobile.home.arpa
Address:  192.168.100.12

When I removed the local-link address from the router, domain resolutions stopped working again.
I thought it must be a temporary issue so I restarted my entire network, from the router to the DNS server itself, but I couldn't fix it the address problem; only the local-link address fe80::abcd:efg:hijk:12l3 seems to work.
I'm not sure if this is the way it's configured from the start but I'm noticing this now. There hasn't been any change in Pi-Hole's settings recently.
Is this the default behaviour for filling up DNS servers? If so, should it suddenly be causing issues?

Related Issues

  • I have searched this repository/Pi-hole forums for existing issues and pull requests that look similar

How to reproduce the issue

  1. Environment data
  • Operating System: Ubuntu
  • Hardware: PC
  • Kernel Architecture: amd64
  • Docker Install Info and version:
    • Software source: official docker-ce
    • Supplimentary Software: none
  • Hardware architecture: x86
  1. compose.yml
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "80:80/tcp"
      - "443:443/tcp"
      - "67:67/udp"
    environment:
      TZ: 'Asia/Karachi'
    volumes:
      - './pihole:/etc/pihole'
    cap_add:
      - NET_ADMIN
      - SYS_NICE
    restart: unless-stopped
    network_mode: "host"

These common fixes didn't work for my issue

  • I have tried removing/destroying my container, and re-creating a new container
  • I have tried fresh volume data by backing up and moving/removing the old volume data
  • I have tried running the stock docker run example(s) in the readme (removing any customizations I added)
  • I have tried a newer or older version of Docker Pi-hole (depending what version the issue started in for me)
  • I have tried running without my volume data mounts to eliminate volumes as the cause

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions