Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7026075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:04:09+00:00 2026-05-28T00:04:09+00:00

First things first: I’m storing multiple domains to a database, after I’ve converted each

  • 0

First things first:

I’m storing multiple domains to a database, after I’ve converted each and every domain name to it’s IDNA version. What I need to know the maximum length such an IDNA-converted domain name can have so I can define the database field’s max length.

Known fact:

Now, I know the maximum number of characters in a domain name (including any subdomains) is 255 characters.

Where I lost it:

That’s easy at first glance, but… does this mean regular ascii characters of international characters (think UTF-8 encoding)?

To give you an example: The domain “müller.de” has 9 characters when I ignore that “ü” is an international character that needs more bytes to be represented. The IDNA version of “müller.de” is “xn--mller-kva.de”, which has 16 characters. This shows there’s definitely a difference in maximum length depending on “if” it is IDNA converted or not.

Depending on what kind of characters they mean, the 255-character maximum could be the international character version, the IDNA converted version or even both.

And that’s where I lost it a bit… especially, since I have to take into account that not all domains will be sane and stuff like “öüßüöäéèê.example.äöüßüöäéèê-äöüßüöäéèê.test.äöüßüöäéèê.com” and even worse is to be expected.

So, “guessing” and “hoping for the best” is not an option. I need to know for sure…

The question is:

Based on the known fact that the maximum number of characters in a domain name (including any subdomains) is 255 characters… what is the maximum length of an IDNA converted domain name?

Or did they mean the IDNA converted version (punycode) is also restricted to 255 characters (which would mean that domains with international/unicode characters would actually have shorter limits in their unicode representation, because their IDNA converted version would have to respect the 255 char limit)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:04:09+00:00Added an answer on May 28, 2026 at 12:04 am

    My understanding is that the 255-character limit is to be considered after the IDNA conversion.

    This is because DNS records have this character limit, and in general DNS records can only contain letters, digits and hyphens (from Wikipedia). The DNS server therefore uses the Punycode version of the IDN for its record, not the Unicode version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First things first, I'm using cygwin version 1.7.1 on a Windows 7 box. Code
I just installed a trial version of ReSharper and one of the first things
One of the first things I learned in C++ was that #include <iostream> int
One of the first things I like to do when I make a site
One if the first things I learned when I started with C# was the
I've installed PowerShell recently and one of the first things I started looking for
Everything is an object was one of the first things I learned about Ruby,
I know the bits just came out today, but one of the first things
I'm working on my first 'real' F# assembly, and trying to do things right.
I have an app with a UITextField, amongst other things. When the user first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.