BIND cannot be started: dns_rdata_fromtext: syntax error

Created:

2017-04-12 09:00:49 UTC

Modified:

2017-08-08 13:13:18 UTC

0

Was this article helpful?


Have more questions?

Submit a request

BIND cannot be started: dns_rdata_fromtext: syntax error

Applicable to:

  • Plesk Onyx 17.5 for Linux

Symptoms

After adding an SPF or DKIM record longer than 255 characters, BIND fails to start with the error:

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

Cause

This is Plesk bug with ID PPPM-6062 which is planned to be fixed in future Plesk updates.

Resolution

As a workaround:

  1. Add a required TXT records manually to /var/named/chroot/var/example.com in a form like below:

    # grep DKIM1 /var/named/chroot/var/example.com
    _domainkey.example.com.        IN TXT  ("v=DKIM1; k=rsa; p=" "MIIBIjANBgkqhkiG9w0BAQEF123CAQ8AMIIBCgKCAQEAtzHXoHak/KCkc" "3DSHZQxjW2ZqZ/Im4mPzqXJ4561Stp547C6WhcH9erXuu4p5nmKfuQQ2kmMKbZrZ+Bg2HyrZkzzN01tt" "2Bmtg8/tiZoRMQmU9/rHblatGArhTB+jVQf0KJ/OPWEZy/Jn/x/CyX421T8wnrhV7W/318dVa57qhBbe" "4dQSBcLaij3F7/lWhVKODh8ylK9y8u7inUNu6/ww5+w3")
  2. Restart named-chroot service to apply settings:

    # systemctl restart named-chroot.service
Note: records which are added manually will be lost after DNS records are updated through Plesk.
Have more questions? Submit a request
Please sign in to leave a comment.