Skip to content
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

Domains don't resolve #119

Open
titpetric opened this issue Oct 11, 2024 · 0 comments
Open

Domains don't resolve #119

titpetric opened this issue Oct 11, 2024 · 0 comments

Comments

@titpetric
Copy link

titpetric commented Oct 11, 2024

Hello,

I'm using the latest amd64 docker image. I've configured dnsdock to run as:

  dnsdock:
    image: aacebedo/dnsdock:latest-amd64
    restart: always
    networks:
      - projects-ingress
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 172.18.0.1:53:53/udp
    command:
      - --verbose
      - --http=:80
      - --domain=docker.lan

The output confirms the settings:

services-dnsdock-1      | 08:37:47.968 | DEBUG ▶ Handling DNS requests for 'docker.lan'.
services-dnsdock-1      | 08:37:47.986 | DEBUG ▶ Added service: 'e4122f3eb76f44174fabbb358f814def3f642e50b16b39470cbbac2c168b78a0'
services-dnsdock-1      |                        Name:     services-dnsdock-1
services-dnsdock-1      |                        Aliases:  []
services-dnsdock-1      |                        IPs:      [172.18.0.10]
services-dnsdock-1      |                        TTL:      -1
services-dnsdock-1      |                        Provider: docker

Trying to resolve any particular docker host registered:

services-dnsdock-1      | 08:41:01.364 | DEBUG ▶ DNS request for query 'services-dnsdock-1.docker.lan' from remote '172.18.0.1:47981'
services-dnsdock-1      | 08:41:01.364 | DEBUG ▶ No DNS record found for query 'services-dnsdock-1.docker.lan'

I'm not sure what the misconfiguration may be. I've tried clearing --domain, using single-words (no .)...

Also tried with --environment=docker, --domain=local; trying to see if i can surface more data from the http server.


host scene.nginx-php.docker.local

scene.nginx-php.docker.local has address 172.18.0.5
scene.nginx-php.docker.local mail is handled by 0 scene.nginx-php.docker.local.

host scene.docker.local

Host scene.docker.local not found: 3(NXDOMAIN)

host nginx-php.docker.local

nginx-php.docker.local has address 172.18.0.5
nginx-php.docker.local mail is handled by 0 nginx-php.docker.local.

I wish there was a flag to auto-alias just the docker container name, but not the image name. It's clear after a detailed read of the README, but not following least astonishment, I'd expect .docker.local to be resolved.

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