Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Prefixing with underscore can make a DNS component exceed 63 chars #522

Open
MikeWillCook opened this issue May 30, 2018 · 0 comments
Open

Comments

@MikeWillCook
Copy link

After supporting RFC1123 the limit of 63 chars is default, but when an underscore is prefixed for some records (e.g., port SRV records) they then can become too long and fail to query. It appears any time an underscore is prefixed the name length must be potentially truncated back to 63 chars.

For example, this would be a valid length of 63 chars without the underscore:

# dig _port0.longapplicationname-1234567890123456789012345678901234567890123._tcp.marathon.mesos

But this fails:

# dig _port0._longapplicationname-1234567890123456789012345678901234567890123._tcp.marathon.mesos
dig: '_longapplicationname-1234567890123456789012345678901234567890123._tcp.marathon.mesos' is not a legal name (label too long)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant