-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
L2 FewLikelihoodLikelihoodP2 AggravatingPriority levelPriority levelT5 UsabilityIssue typeIssue typebugBugBugdns
Description
What is the issue?
When reading in a resolv.conf file the entire search line is passed to ToFQDN:
| fqdn, err := dnsname.ToFQDN(domain) |
ToFQDN compares the length of the string to 253, the maximum length of a domain name:
tailscale/util/dnsname/dnsname.go
Line 38 in 692eac2
| if totalLen > maxNameLength { |
However there can be many search domains on the one line. Each one should be allowed to be 253 bytes, not the sum of all of them.
HS #8274
Steps to reproduce
No response
Are there any recent changes that introduced the issue?
No response
OS
No response
OS version
No response
Tailscale version
1.34.1
Bug report
No response
Metadata
Metadata
Assignees
Labels
L2 FewLikelihoodLikelihoodP2 AggravatingPriority levelPriority levelT5 UsabilityIssue typeIssue typebugBugBugdns