Linux : Bind loading master file domain.tld.hosts: ran out of space

By | October 12, 2014

Bind (named) DNS server is failing to reload or restart after modifying a domain TXT record? Have a look at your Bind log files (commonly written to /var/log/messages) and you may find the following entries :

named: dns_rdata_fromtext: domain.tld.hosts:0: ran out of space
named: zone domain.tld/IN: loading master file domain.tld.hosts: ran out of space
named: _default/domain.tld/IN: ran out of space

The problem is probably because you have a TXT record string longer than 255 characters which is the limit, explaining why it returned a “ran out of space” error message.

You may have a longer than 255 characters TXT record, however not in a single string. Using double quotes ( ” ) as followed :

IN TXT "v=spf1 ip4:0.0.0.0/24 ip4:1.1.1.1/24" "include:smtp.domain.tld -all"