How to setup DKIM and DMARC records

2024-02-14 linux bind

Here's an example how to set up zone info for bind.

_dmarc.example.com.                 IN      TXT     "v=DMARC1; p=quarantine; aspf=r; adkim=r"
rs20240214._domainkey.example.com.  IN      TXT     ("v=DKIM1; k=rsa; p=" 
"......" 
"......" 
"......" 
"......" 
"......")

The knack is how to write down the long pubkey by surrounding () and separete with a space.

https://stackoverflow.com/questions/43720476/setting-up-dkim-setup-dns-zone-syntax-error-on-bind-in-ubuntu