Skip to content

/etc/resolv.conf parsing limits entire search domain list to 253 bytes #6875

@DentonGentry

Description

@DentonGentry

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:

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions