Skip to content

Private reverse DNS stops working when private DNS server is not ready when adguard starts #7743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
pduchnovsky opened this issue Apr 2, 2025 · 0 comments
Open
4 tasks done

Comments

@pduchnovsky
Copy link

pduchnovsky commented Apr 2, 2025

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

Docker

Setup

On one machine

AdGuard Home version

v0.107.59

Action

  1. Set up coredns docker container address as Private reverse DNS server
    Image
  2. Start both adguard and coredns at the same time (using docker-compose)

Expected result

I would expect adguard home to re-try using Private reverse DNS server after failure, rather than trying once and then disregarding it forever until restart.

Actual result

Adguard home probably tries to contact Private reverse DNS server after start, it fails because coredns instance is still not ready to serve, then it continues to ignore it completely, unless adguard home is restarted, or Private reverse DNS server entry is re-done and saved again.

Additional information and/or screenshots

docker-compose

version: '4'

x-defaults: &defaults
  restart: always
  mem_swappiness: "1"
  security_opt:
    - no-new-privileges:true

services:
  adguard:
    <<: *defaults
    image: adguard/adguardhome
    container_name: adguard
    network_mode: host
    environment:
      - TZ=Europe/Amsterdam
    labels:
      - traefik.enable=true
      - traefik.http.services.adguard.loadbalancer.server.port=3000
      - traefik.http.routers.adguard.rule=Host(`adguard.${TRAEFIK_DOMAIN}`)
      - traefik.http.routers.adguard.entrypoints=websecure
      - traefik.http.routers.adguard.middlewares=internal@file
    volumes:
      - /volume1/docker/adguard/conf:/opt/adguardhome/conf
      - /volume1/docker/adguard/work:/opt/adguardhome/work
    mem_limit: 700m
    memswap_limit: 700m

  coredns:
    <<: *defaults
    image: ghcr.io/dougbw/coredns_omada@sha256:f95d7d342bdd82c2625a4c9313ae83d0a79db917501ba878e15b50b82b1f9b09
    container_name: coredns
    ports:
      - 127.0.0.1:5053:53/udp
    environment:
      - TZ=Europe/Amsterdam
      - OMADA_URL=https://${SERVER_LAN_IP}:8043
      - OMADA_SITE=Default
      - OMADA_USERNAME=${OMADA_USERNAME}
      - OMADA_PASSWORD=${OMADA_PASSWORD}
      - OMADA_DISABLE_HTTPS_VERIFICATION=true
    volumes:
      - /volume1/docker/coredns/Corefile:/Corefile
    mem_limit: 100m
    memswap_limit: 100m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant