I installed dkim. Now when I setup dns, I have a syntax error
This is dns for dkim:
201704._domainkey.example.com IN TXT "v=DKIM1; h=rsa-sha256; k=rsa; s=email; p=blah blah;"
root@example:~# named-checkzone example.com /etc/bind/db.example.com dns_rdata_fromtext: /etc/bind/db.example.com:35: syntax error zone example.com/IN: loading from master file /etc/bind/db.example.com failed: syntax error zone example.com/IN: not loaded due to errors.
First, you must ensure that you'll be able to add the DKIM public keys. You'll need a configuration stanza like this in your BIND configuration file: zone "_domainkey.itverx.com" { type master; file "db._domainkey.itverx.com"; update-policy { grant dupdates.itverx.com. subdomain _domainkey.itverx.com.
A DKIM record is a specialized DNS TXT record that stores the public key used to verify an email's authenticity.
Not sure on the cause, but splitting the long string up into shorter ones separated by spaces and wrapped by (
and )
fixes the issue. For example,
dkim3._domainkey IN TXT ("v=DKIM1; t=s; p=" "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD78Ki2d0zmOlmjYNDC7eLG3af12KrjmPDeYRr3" "q9MGquKRkRFlY+Alq4vMxnp5pZ7lDaAXXwLYjN91YY7ARbCEpqapA9Asl854BCHMA7L+nvk9kgC0" "ovLlGvg+hhqIPqwLNI97VSRedE60eS+CwcShamHTMOXalq2pOUw7anuenQIDAQAB")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With