-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FR: Add DNS config support for Synology DSM7 #3602
Comments
If you want to use Smart DNS from Synology and have the machine be reachable via Tailscale, starting it with: I don't think we have a way to make both Smart DNS and Magic DNS work simultaneously, at least not yet. |
And now I realize I wrote SmartDNS when I really wanted to say MagicDNS 😁 I (want to) use Tailscale's MagicDNS, no SmartDNS is involved at all, sorry for the confusion. To use MagicDNS, I assume that the Synology's |
Could you paste the output of |
It's a plain file (no symlink), here are the permissions:
Thanks! |
I don't expect this to ever work on DSM7 where we don't run as root. AFAIK there's no API for us to change it as our non-root user. If you use the SOCKS5 proxy for outgoing connections it'll do its own name resolution. I assume you enabled TUN mode? Ah, yes, I see you did. You could manually change the Synology DNS server to 100.100.100.100 but then Tailscale wouldn't know where to forward on non-Tailscale queries to unless you specified a global DNS server in your Tailnet config. Perhaps we need a node-local way to specify that. |
1.22 added a |
Mentioned in #4017 (comment) The Synology CLI Administrators Guide mentions:
But the description is:
|
Thanks @jimmybrancaccio for pointing out this ticket. To folks who have weighed in so far, I've tried on DSM7.2.2 the following suggestions with the results as noted (all as root):
I am not clear on how nslookup was able to resolve global DNS and local DNS entries (which is not something this NAS is managing) when only 100.100.100.100 was present. My TS DNS configuration is to override local DNS with:
Is 100.100.100.100 somehow able to access my account-specific configuration? I figured that for this to work, all rules would have to be written into /etc/resolv.conf , but that doesn't seem to be the case. If not, is the solution here to simply force our DSM7 boxes to use 100.100.100.100 when running Tailscale (either through synonet --set_dns or in the Synology control panel)? |
Just to cut to the chase for anyone else that is looking for a quick solution, this is what is working for me now so you may give it a try:
|
@pjdubya thanks for the solution. I was close, what I missed was |
@pjdubya Thanks, your solution worked great for me! I've been struggling with this issue for a few months 😩 Do you know if the and if that's doing the same thing, why do we need to run that task at NAS boot? Is there something that changes that configuration upon reboot? 🤔 |
What is the issue?
Using Tailscale 1.18.2-2015 on DSM 7.0.1-42218, there seem to be an issue writing the
/etc/resolv.conf
file, when SmartDNS is used.Steps to reproduce
No response
Are there any recent changes that introduced the issue?
No response
OS
Synology
OS version
DSM 7.0.1-42218
Tailscale version
1.18.2
Bug report
BUG-eec526fd617b286ee8b5e696d6b78c5b247fc0d64eead2b7845266145c8a9855-20211221144231Z-b1d2a4067be6e233
The text was updated successfully, but these errors were encountered: