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