-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Interface-specific DNS not set if not overriding local nameserver #1547
Comments
I can confirm this issue. Related: #660 (comment), #905 |
I'm also experiencing the same issue on Linux Mint unfortunately. The system is using My two other nodes - an Android, and a I'll update with logs from |
Here is a temporary solution to make MagicDNS work without manually running the resolvectl command: Create a service override configuration file: sudo mkdir -p /etc/systemd/system/tailscaled.service.d
sudo nano /etc/systemd/system/tailscaled.service.d/fix-headscale-magicdns.conf Write the following content to the file: [Service]
# This trick allows you don't have to waiting for an extra 15 seconds during system boot-up or service restart.
ExecStartPost=/bin/sh -c "/bin/sh -c 'sleep 15s && /usr/bin/resolvectl dns tailscale0 100.100.100.100' &" Caution: Try the command Reload the systemd configuration and restart the service: sudo systemctl daemon-reload
sudo systemctl restart tailscaled |
@9Ninety Brilliant solution! Thank you so much. |
This issue is stale because it has been open for 90 days with no activity. |
I think this is still relevant. |
I'm not able to reproduce this on Ubuntu 23.10 (systemd 253) with latest Headscale 0.23.0-alpha5 and Tailscale 1.60.1 and $ tailscale debug prefs | jq '.CorpDNS'
true `resolvectl status tailscale0`
Is this maybe an upstream condition, eventually related to distribution-specific packaging/configuration? |
Same issue here with the following setup: Headscale host: docker image |
Recent tests showed that this bug has been fixed somehow, so I'm closing this issue. |
Bug description
When connecting to headscale server, I configured
dns_config.override_local_dns
to false, and observed thatsystemd-resolved
's interface-specific fortailscale0
is not set to 100.100.100.100. In general, I tested several configurations, and the results are here:I expect that 100.100.100.100 be set as interface-specific nameserver even when override_local_dns is not enabled, otherwise FQDNs internal to my tailnet (hostname.username.base_domain) will not be resolved by 100.100.100.100, and thus is not giving back correct responses.
Everything else works as expected.
Environment
linux-6.1.0
linux-6.5.3
I'll post logs laterresolvectl status tailscale0
outputs when connected to headscale:when connected to tailscale official server:
To Reproduce
override_local_dns
resolvectl status tailscale0
on the client to check resultsThe text was updated successfully, but these errors were encountered: