Suped

What is the typical DNS record length limit and what should I do if my provider has a smaller limit?

Summary

DNS record length limits can significantly impact email deliverability, especially for authentication records like SPF, DKIM, and BIMI. While a common standard for TXT records allows up to 255 characters per string (and multiple strings for longer records), some DNS providers impose stricter or poorly implemented limitations. These restrictions can lead to critical records being truncated or rejected, causing email authentication failures and increased chances of messages landing in the spam folder or being blocklisted (blacklisted).

What email marketers say

Email marketers often face unexpected hurdles with DNS record length limits, particularly when trying to implement modern email authentication standards like BIMI or when increasing DKIM key sizes. These issues can arise even with relatively short records, indicating outdated or restrictive DNS hosting environments. The primary concern is how these limitations affect email deliverability, as broken records lead to authentication failures and potential blacklisting (blocklisting).

Marketer view

Marketer from Email Geeks states that their webhost provider, who also manages their domain's DNS, surprisingly reported that an 87-character BIMI DNS record was too long to support. This was a new and unexpected issue, highlighting potential limitations with certain DNS providers even for relatively short records, impacting the adoption of new email authentication standards.

20 Jul 2022 - Email Geeks

Marketer view

Marketer from Email Geeks questions how DNS providers handle DKIM records if they cannot support an 87-character BIMI record. They suspect the handling is probably poor, indicating a broader issue with the provider's capabilities concerning standard email authentication DNS entries. This suggests that basic email deliverability might also be compromised.

20 Jul 2022 - Email Geeks

What the experts say

Experts consistently highlight that DNS record length issues, particularly for TXT records, stem from either an outdated understanding of DNS specifications by providers or the failure to implement multi-string TXT records correctly. They emphasize that while each string has a 255-character limit, the aggregate record length can be much longer. The critical advice is to ensure DNS infrastructure is robust enough to handle modern email authentication requirements, advocating for migration if a provider proves incapable.

Expert view

Expert from Spamresource advises that DNS record length limits, particularly for TXT records, are rarely a true technical bottleneck with modern DNS implementations. They suggest that any provider imposing severe restrictions (like an 87-character limit) is likely using outdated systems or has poor configuration practices, necessitating a review of their services.

22 Jul 2024 - Spamresource

Expert view

Expert from Wordtothewise highlights that the core DNS specification for TXT records allows for strings up to 255 characters. For longer data, such as extended DKIM keys or complex BIMI records, the data should be concatenated by the DNS server from multiple such strings. Providers failing to implement this correctly will cause authentication failures.

22 Jul 2024 - Wordtothewise

What the documentation says

Official documentation and technical standards generally confirm that DNS TXT records allow for individual strings of up to 255 characters. Crucially, longer records can be formed by concatenating multiple such strings. This design allows for flexibility in accommodating the increasing length of authentication records like DKIM and BIMI. The emphasis is on proper implementation by DNS providers to ensure these multi-string records are correctly assembled and resolved.

Technical article

Documentation from Maileroo states that the typical character limit for a DKIM record within a single string is 255 characters. They emphasize that if the DKIM key itself is longer than this, it will exceed the limit imposed by many DNS providers, leading to a 'DKIM key too long' error and subsequent authentication failures.

22 Jul 2024 - Maileroo Help Centre

Technical article

Documentation from AutoSPF explains that all SPF records are expected to be no more than 255 characters long within a single string. This limit includes all characters in the SPF record itself, as well as any expanded DNS names or mechanisms referenced within it. Exceeding this can cause the SPF record to be invalid.

22 Jul 2024 - AutoSPF

12 resources

Start improving your email deliverability today

Get started