Search code examples
dnsdomain-name

By what application is the domain name's length restricted by, and can this be changed if it is a different DNS implementation?


I'm currently implementing a decentralized DNS, and am wondering if a domain name character limit is specific to the storage of DNS records

According to Wikipedia

The full domain name may not exceed a total length of 255 characters

But then below it also says

In practice, some domain registries may have shorter limits.

I've also looked at this answer here which mentions -

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...

Is this true, and if so, does this mean my implementation can resolve domains with larger than 256 chars?


Solution

  • Thi is an RFC document you need: http://www.faqs.org/rfcs/rfc1035.html

    According to this different DNS records has it's own limit.

    Probably you shouldn't think about a particular software or different practices, you just should look to an appropriate document (rfc specification).