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

local bind server #155

Open
Caaruzo opened this issue Feb 14, 2022 · 4 comments
Open

local bind server #155

Caaruzo opened this issue Feb 14, 2022 · 4 comments
Assignees

Comments

@Caaruzo
Copy link
Contributor

Caaruzo commented Feb 14, 2022

can you please do a docker compose with configuring a bind-dns server?
Should be useable for local (internal) domains please.

thx very much

@cbirkenbeul
Copy link
Owner

So for the hole local network not just for docker?

@Caaruzo
Copy link
Contributor Author

Caaruzo commented Feb 20, 2022

yes, one that could be used for the whole local network with an own internal domain like "mydomain.intern".
I already build one currently but it doesnt seems to work. Cant reach the name server. Same bind config in a virtual machine without docker works without any issues.

version: '3.7' 

services:
  bind:
    container_name: bind
    user: 105:106
    image: internetsystemsconsortium/bind9:9.16
    restart: unless-stopped
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - ./volume/config:/etc/bind
      - ./volume/records:/var/lib/bind
      - ./volume/cache:/var/cache/bind 
    networks:
      - default
    ports:
      - "53:53/udp" 
      - "53:53/tcp" 

networks:
  default:
    driver: bridge

@cbirkenbeul
Copy link
Owner

I guess you have to use host hostwork. Its for other services like avahi the same.

@Caaruzo
Copy link
Contributor Author

Caaruzo commented Feb 22, 2022

Thanks much, but this was not needed. it works like i did. No idea why it didnt worked before. Maybe it was just a resolving problem on windows side, ignored by ipconfig /flushdns xD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants