TXT entry: line length/size limitation

pbeckhelm at gmail.com pbeckhelm at gmail.com
Tue Aug 2 23:44:26 UTC 2005


Greetings,

I'm trying to find the most recent information on zone file line length
limitations for BIND 9.  I recently tried to add a TXT entry (for SPF)
and when I restarted named I got the following error in my debug log:

dns_rdata_fromtext: databases/db.foo.com:61: ran out of space
zone foo.com/IN/external-in: loading master file databases/db.foo.com:
ran out of space

So, I found that there's a 255 character limitation for a TXT record:

http://bonz.squares.net/~dais/misc/migration.en.txt:

2.6. TXT records are no longer automatically split.

Some versions of BIND accepted strings in TXT RDATA consisting of more
than 255 characters and silently split them to be able to encode the
strings in a protocol conformant way. You may now see errors like this
        dns_rdata_fromtext: local.db:119: ran out of space
if you have TXT RRs with too longs strings. Make sure to split the
string in the zone data file at or before a single one reaches 255
characters.

---

However, I'm having some trouble figuring out the syntax of splitting
the TXT record into multiple <255 char lines.

I've been googling like crazy and can't seem to find anything thus far.
 Help on this would be much appreciated.

Thanks,

Patrick



More information about the bind-users mailing list