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

Consider to upgrade Docker-Bind to latest version (0.17) #731

Closed
llaville opened this issue Sep 29, 2020 · 6 comments
Closed

Consider to upgrade Docker-Bind to latest version (0.17) #731

llaville opened this issue Sep 29, 2020 · 6 comments
Assignees
Labels

Comments

@llaville
Copy link
Contributor

ISSUE TYPE

  • Feature request

SUMMARY

While working on Auto DNS feature to try to solve issue #604, I've found that :

I've also noticed that feature that came with version 0.17, has no env variable defined in env-example file
See https://github.com/cytopia/docker-bind#optional-environmental-variables

  • ALLOW_QUERY
  • ALLOW_RECURSION

Goal

BIND_ALLOW_QUERY
BIND_ALLOW_RECURSION

And modify the bind service in docker-compose.yml => https://github.com/cytopia/devilbox/blob/v1.7.2/docker-compose.yml#L36

With version 0.15 I got this output with docker-compose logs bind command

bind_1   | [INFO] Debug level: 2
bind_1   | [INFO] BIND logging: disabled explicitly
bind_1   | [INFO] Using default DNS TTL time: 3600 sec
bind_1   | [INFO] Using default DNS Refresh time: 1200 sec
bind_1   | [INFO] Using default DNS Retry time: 180 sec
bind_1   | [INFO] Using default DNS Expiry time: 1209600 sec
bind_1   | [INFO] Using default DNS Max Cache time: 10800 sec
bind_1   | [INFO] Adding wildcard DNS: *.local -> 127.0.0.1
bind_1   |
bind_1   | zone local/IN: loaded serial 1601309650
bind_1   | OK
bind_1   | [INFO] Not adding any extra hosts
bind_1   | [INFO] DNSSEC Validation: no
bind_1   | [INFO] Adding custom DNS forwarder: 8.8.8.8,8.8.4.4
bind_1   | [INFO] Starting BIND 9.11.3

And with new version 0.17, I got this output

bind_1   | [INFO] Debug level: 2
bind_1   | [INFO] BIND logging: disabled explicitly
bind_1   | [INFO] Using default DNS TTL time: 3600 sec
bind_1   | [INFO] Using default DNS Refresh time: 1200 sec
bind_1   | [INFO] Using default DNS Retry time: 180 sec
bind_1   | [INFO] Using default DNS Expiry time: 1209600 sec
bind_1   | [INFO] Using default DNS Max Cache time: 10800 sec
bind_1   | [INFO] Adding wildcard DNS: *.local -> 127.0.0.1
bind_1   |
bind_1   | zone local/IN: loaded serial 1601405542
bind_1   | OK
bind_1   | [INFO] Not adding any extra hosts
bind_1   | [INFO] $ALLOW_QUERY not set.
bind_1   | [INFO] DNS query rules will not be set
bind_1   | [INFO] $ALLOW_RECURSION not set.
bind_1   | [INFO] DNS recursion rules will not be set
bind_1   | [INFO] DNSSEC Validation: no
bind_1   | [INFO] Adding custom DNS forwarder: 8.8.8.8,8.8.4.4
bind_1   | [INFO] Starting BIND 9.11.5
@llaville
Copy link
Contributor Author

llaville commented Oct 5, 2020

Friendly ping @cytopia

@cytopia
Copy link
Owner

cytopia commented Nov 12, 2020

@llaville how does the new Bind versoin resolve #604?

@cytopia cytopia self-assigned this Nov 12, 2020
@llaville
Copy link
Contributor Author

llaville commented Nov 12, 2020

@cytopia It does not solve #604.
For WSL 2 and AutoDNS I've solved part of problem, but I got no more CORS issues when I visit vhosts intranet devilbox page. I'll keep continue to search but my answer will be publish on 604 bug report

@llaville
Copy link
Contributor Author

llaville commented Nov 12, 2020

My docker-compose.override.yml contains at least

version: '2.3'

services:

  bind:
    image: cytopia/bind:0.17
    environment:
      - ALLOW_QUERY=${BIND_ALLOW_QUERY:-any}
      - ALLOW_RECURSION=${BIND_ALLOW_RECURSION:-localnets,localhost}

@cytopia
Copy link
Owner

cytopia commented Nov 14, 2020

FYI: Currently working on a separation of the bind container and autodns (so that bind would not be required at all, but only if you want to have auto-dns). It's also related to this PR: #411 and this issue: #248
Will keep you posted.

@llaville
Copy link
Contributor Author

Thanks a lot !

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

No branches or pull requests

2 participants