Modern DNS systems typically support record lengths of 253 characters or more, but older systems and specific configurations may impose lower limits. The RFC standard defines limits for domain names and labels. When facing restrictions, switching to a provider with better support (like Cloudflare, AWS Route 53, or Namecheap's free DNS) is often recommended. If switching isn't immediately feasible, consider splitting long TXT records, structuring SPF records with 'include:' statements to manage complexity, and verifying that the limitation isn't due to misconfiguration. Monitor DNS response sizes and ensure proper SPF configuration to avoid DNS lookup issues. Some providers may also have bugs or configuration issues that lead to these limit issues.
11 marketer opinions
The typical DNS record length limit varies, but modern systems generally support 253 characters or more. However, practical considerations, like UDP packet size, can impose smaller effective limits. When a provider has a lower limit, the primary recommendation is to switch to a provider with better support or utilize alternative DNS services. If switching isn't immediately feasible, consider splitting records into smaller parts (particularly for TXT records) and adjusting your application to concatenate them. Also, verify the stated limits are accurate and not due to misconfiguration.
Marketer view
Email marketer from Email Geeks shares that when they moved DKIM to 2048, they ran into this issue with a few providers.
27 Mar 2022 - Email Geeks
Marketer view
Email marketer from Reddit advises that if a DNS provider restricts record lengths significantly, one should consider moving to a more capable DNS host. They also suggest verifying that the stated limits are indeed the issue, and not a misconfiguration.
3 Jan 2022 - Reddit
3 expert opinions
Modern DNS hosting providers generally support record lengths well beyond 87 characters, with default standards around 253 characters. When facing limitations, structuring SPF records effectively using include statements helps manage complexity and avoid DNS lookup issues arising from oversized or misconfigured records.
Expert view
Expert from Spam Resource, Steve Jones, discusses SPF record character limits, which implicitly relates to DNS record limits, and suggests that if you are up against the character limits, the best option is to use include: statements referencing other records. This reduces the overall impact of large records.
12 Nov 2022 - Spam Resource
Expert view
Expert from Word to the Wise, Laura Atkins, shares information about avoiding common SPF record mistakes, which can lead to DNS lookup issues if records are misconfigured or become too complex. Laura doesn't specify record limits but provides information about structuring SPF records to ensure valid DNS queries and avoid issues, which implicitly affects how DNS limitations manifest.
28 Jan 2024 - Word to the Wise
4 technical articles
DNS record length limits are governed by several factors. While domain names have a 255-character limit and labels within them a 63-character limit (RFC 1035), practical limits arise due to UDP packet size (typically 512 bytes). Although larger TCP responses are possible, it's best to use DNSSEC wisely, avoid excessively large records to prevent fragmentation, monitor response sizes, and consider DNS record compression. For TXT records, it's advisable to keep them shorter than the 255-character limit for better compatibility.
Technical article
Documentation from DNSimple outlines that many systems adhere to a 512-byte limit for UDP responses, but larger TCP responses are possible. They suggest monitoring DNS response sizes and considering DNS record compression techniques for large DNS zones.
26 Mar 2023 - DNSimple
Technical article
Documentation from RFC Editor specifies that domain names are limited to 255 characters in total, and each label (part separated by dots) can be at most 63 characters long. It also indicates the maximum DNS message size over UDP is 512 bytes, impacting practical limits when considering other record types.
8 Sep 2021 - RFC Editor
How can I bulk check and clean MX records for a list of domains?
How can I filter and sanitize a large list of email domains using DNS and other techniques?
How can I optimize my SPF record to stay within the lookup limit when using multiple email sending services?
How do CNAME records affect DNS records like SPF, DKIM, DMARC, and MX?
How do I add a TXT record to a DNS configuration for Google Postmaster?
How do I configure DNS records to send emails from two different ESPs using the same subdomain?