Skip to content

Unable to set custom DNS #158

@goldmont

Description

@goldmont

Hi there,

I have a self-hosted Pi-hole instance that works fine and I would like to set it as DNS of a container based on this image. I've opened port 53 on my host too. I tried to add to my docker-compose.yml the dns key and setting the host IP address as its value but the container is still unable to resolve custom domains. I also tried to set the DNS inside the Docker daemon.json file but no luck. I don't know if this issue could be related to the base image you are using (Alpine). Could you help me? Thanks.

EDIT:
I forgot to write that the container is able to resolve custom domains listed into the extra_hosts key of my docker-compose.yml. By the way this is not a solution because I have to resolve wildcard domains which are not supported by extra_hosts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions