Named does not start: dns_rdata_fromtext: syntax error

Created:

2017-04-06 01:11:45 UTC

Modified:

2017-08-16 18:30:05 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Named does not start: dns_rdata_fromtext: syntax error

Applicable to:

  • Plesk Onyx for Linux

After adding long SPF record, Named fails to start with error:

dns_rdata_fromtext: domain.tld:23: syntax error
zone domain.tld/IN: loading from master file domain.tld failed: syntax error
zone domain.tld/IN: not loaded due to errors.
_default/domain.tld/IN: syntax error

Cause

SPF has more than 255 characters in a single string. There is limitation of length for SPF record, please refer to this link: SPF record length .

Plesk does not support splitting long SPF records according to RFC4408 via DNS settings per domain

This is Plesk bug with ID PPP-28953 that will be fixed in future Plesk updates.

Resolution

As a workaround, split long SPF records in zone file on the server according to RFC4408 :

1. Go to /var/named/run-root/var/example.com and split SPF record with doublequotes as following:

example.com IN TXT "v=spf1 .... a:one.example.com" "a:two.example.com..."

2. Restart BIND service:

# systemctl restart bind9.service

Note: the applied changes will be lost after next updating of the records in DNS settings for the domain.

Have more questions? Submit a request
Please sign in to leave a comment.