We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Setting dns_config.domains without setting dns_config.override_local_dns = true leads to this warning and dns_config.domains being not applied: Warning: dns_config.domains is set, but no nameservers are configured. Ignoring domains. (https://github.com/juanfont/headscale/blob/main/hscontrol/types/config.go#L545)
dns_config.domains
dns_config.override_local_dns = true
Warning: dns_config.domains is set, but no nameservers are configured. Ignoring domains.
This warning is quite misleading, because nameservers actually refers to resolvers, which is taken from the nameservers field, but only if override_local_dns = true (https://github.com/juanfont/headscale/blob/main/hscontrol/types/config.go#L503).
nameservers
resolvers
override_local_dns = true
If there are technical reasons, keep this behavior and emit a less misleading error message.
If there aren't any technical reasons for why domains needs override_local_dns, change the check and apply this config.
domains
override_local_dns
Set domains to a non-empty list while setting override_local_dns to false.
false
- OS: NixOS 24.05 - Headscale version: master, e.g. 5f9c26930ce796284a8fc7ad167f76e187813d64 - Tailscale version: 1.66.4
I'm open to implementing either option (better error message or changing the check) and opening a PR, if you want me to.
The text was updated successfully, but these errors were encountered:
I think this is a longstanding bug, I dont think the error makes sense based on Tailscales docs, can you give #1987 a go?
Sorry, something went wrong.
Thanks! I will give that PR a go, but it might take some days/weeks.
I gave it a try and it seems to solve my problem. Didn't do any extensive tests though.
Successfully merging a pull request may close this issue.
Is this a support request?
Is there an existing issue for this?
Current Behavior
Setting
dns_config.domains
without settingdns_config.override_local_dns = true
leads to this warning anddns_config.domains
being not applied:Warning: dns_config.domains is set, but no nameservers are configured. Ignoring domains.
(https://github.com/juanfont/headscale/blob/main/hscontrol/types/config.go#L545)This warning is quite misleading, because
nameservers
actually refers toresolvers
, which is taken from thenameservers
field, but only ifoverride_local_dns = true
(https://github.com/juanfont/headscale/blob/main/hscontrol/types/config.go#L503).Expected Behavior
If there are technical reasons, keep this behavior and emit a less misleading error message.
If there aren't any technical reasons for why
domains
needsoverride_local_dns
, change the check and apply this config.Steps To Reproduce
Set
domains
to a non-empty list while settingoverride_local_dns
tofalse
.Environment
Runtime environment
Anything else?
I'm open to implementing either option (better error message or changing the check) and opening a PR, if you want me to.
The text was updated successfully, but these errors were encountered: