Fix DKIM String in DNS Records

1 post / 0 new
#1 Thu, 10/18/2018 - 12:23
diegoweb

Fix DKIM String in DNS Records

Hey!

When adding a new domain into virtualmin, the DKIM string in DNS Records is separated in many quotes. This causes a issue when you need to export this type of record to Cloudflare for example.

Is it possible to change this behavior and set the whole DKIM string in just one quote, without any spaces?

Default:

dkim._domainkey.mydomain.com. IN TXT ( "v=DKIM1; k=rsa; t=s; p=PART OF THE KEY IS HERE"
"THE SECOND PART COMES HERE"
"THE THIRD PARTY COMES HERE"
"THE FOURTH PARTY COMES HERE"
"THE FIFTH PARTY COMES HERE"
"THE END IS HERE" )

Expected behavior:

dkim._domainkey.mydomain.com. IN TXT ( "v=DKIM1; k=rsa; t=s; p=THE WHOLE STRING SITS HERE, WITHOUT SPACES OR INTERNAL QUOTES" )

EDIT::::

Nevermind, just found out it was necessary to split the chuncks in order to BIND work properly. https://www.virtualmin.com/node/25318