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

Feature Request: Add a parameter to make unbound forwarding entirely optional? #116

Open
telnetdoogie opened this issue May 13, 2023 · 0 comments

Comments

@telnetdoogie
Copy link

I'd like to see forward-zone be conditional for unbound so that unbound could be configured in recursive-only mode if no forwarders or providers are configured. (related to something I'd like to achieve with gluetun, as per my feature request here )

...I know that seems counterintuitive IN THIS SPECIFIC REPO, based on the intent of this package as it stands on its own, but unless there's a way to configure gluetun to use a different DNS package it sort of ties the two together, so gluetun can ONLY operate in forwarding mode, so long as this package is used.

I hacked my way into removing the forward-zone section in the config file in my own fork by modifying conf.go in that fork to test this out, and was able to successfully make a gluetun build that doesn't contain forwarders. This make gluetun and DNS work perfectly in recursive-only mode... however as you'll see it's a test/hack and would need to be made conditional based on some new environment variable, and I don't have the 'go' chops to make this happen and contribute an elegant solution.

Adding an environment variable like RECURSIVE_ONLY = true would be a nice way to achieve this.

@telnetdoogie telnetdoogie changed the title Add a parameter to make unbound forwarding entirely optional? Feature Request: Add a parameter to make unbound forwarding entirely optional? May 19, 2023
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