Skip to content

Upper-case characters not allowed in domain names #1022

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

Open
sbernauer opened this issue May 2, 2025 · 2 comments
Open

Upper-case characters not allowed in domain names #1022

sbernauer opened this issue May 2, 2025 · 2 comments

Comments

@sbernauer
Copy link
Member

Affected version

main

Current and expected behavior

Users are getting error messages such as
the given hostname "FOO.BAR" is not a valid hostname, which needs to be either a domain name or IP address

Semms like this has worked in the past (nor certain what SDP version exactly).
IMHO RFC 1035 allows such domains, so we should relax our regexes.

Possible solution

No response

Additional context

No response

Environment

No response

Would you like to work on fixing this bug?

None

@nightkr
Copy link
Member

nightkr commented May 14, 2025

Generally, DNS hostnames are expected to be case-insensitive. Just use foo.bar instead. Your browser won't allow you to go to https://GOOGLE.COM either.

@nightkr nightkr changed the title Valid domain names rejected Upper-case characters not allowed in domain names May 14, 2025
@nightkr
Copy link
Member

nightkr commented May 15, 2025

Then again, lower-casing it out of the box shouldn't cost much...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Proposed
Development

No branches or pull requests

3 participants