Skip to content

stripping trailing dot from URL prevents correct dns-resolving #3022

Closed
@thz

Description

@thz

I did this

I used a trailing dot in the URL to prevent system resolvers from appending suffixes from the search list.

I need to do this because appending the suffix will eventually trigger resolving from a different upstream resolver (split dns setup) and add a long delay.

The trailing dot is the correct way to express this "absoluteness" of the name (RFC1034).

While I can understand the TLS/SNI and perhaps "virtual-host-matching" issues based on trailing dots in the URL (mostly discussed in #716), this issue here is really just about the name resolving.

I expected the following

I expected the trailing dot in the hostname to prevent dns lookups with system's dns search list entries appended.
Because curl removed the dot even for resolving the hostname this did not happen.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions