Skip to content
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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant