Page 1 of 1

DNS strips out value of DKIM Record

Posted: Mon Aug 17, 2015 2:32 am
by webdotapp
Hello,

When i add some TXT Record to setup DKIM manually, vesta cp does not save full value.. for example..

RECORD: 2015086.dm._domainkey
value:

Code: Select all

k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAP4GNADCBiSKBgQCtjqQFkSs8F21zammEgYcngcs5g0P+WdWZc1/pRg69MysdVuiXnVnkY7m56sjVwtbJ3vJf4fe+BZlAS78FtTnxGnIirgB6qrRrn1Ohxbj65scxuZF+Ipes8iKnxIlnkRt05mrdiLOcZYTczk56gh5xn52Osl2WBxVWa4n6bht1QIDAQBN

When i try this using DNS lookup tool, i only find

Code: Select all

k=rsa
as value for this record, why is it happening? Why Vestacp is stripping value?

Thanks for your help.

Re: DNS strips out value of DKIM Record

Posted: Mon Aug 17, 2015 7:32 am
by skurudo
Use apostrophe -> "value"

Code: Select all

"k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAP4GNADCBiSKBgQCtjqQFkSs8F21zammEgYcngcs5g0P+WdWZc1/pRg69MysdVuiXnVnkY7m56sjVwtbJ3vJf4fe+BZlAS78FtTnxGnIirgB6qrRrn1Ohxbj65scxuZF+Ipes8iKnxIlnkRt05mrdiLOcZYTczk56gh5xn52Osl2WBxVWa4n6bht1QIDAQBN"

Re: DNS strips out value of DKIM Record

Posted: Mon Aug 17, 2015 8:52 am
by webdotapp
skurudo wrote:Use apostrophe -> "value"

Code: Select all

"k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAP4GNADCBiSKBgQCtjqQFkSs8F21zammEgYcngcs5g0P+WdWZc1/pRg69MysdVuiXnVnkY7m56sjVwtbJ3vJf4fe+BZlAS78FtTnxGnIirgB6qrRrn1Ohxbj65scxuZF+Ipes8iKnxIlnkRt05mrdiLOcZYTczk56gh5xn52Osl2WBxVWa4n6bht1QIDAQBN"


Thanks a lot, it worked, but why apostrophe is required?

Re: DNS strips out value of DKIM Record

Posted: Mon Aug 17, 2015 1:32 pm
by skurudo
webdotapp wrote: Thanks a lot, it worked, but why apostrophe is required?
For parsing DKIM record. Feature, not bug ;-)

Re: DNS strips out value of DKIM Record

Posted: Tue Aug 18, 2015 9:42 am
by webdotapp
skurudo wrote:
webdotapp wrote: Thanks a lot, it worked, but why apostrophe is required?
For parsing DKIM record. Feature, not bug ;-)

Yes I agree, however there is one more issue, when i am trying...

Code: Select all

dig -t TXT 443._domainkey.domain.com +short
Its outputs

Code: Select all

k=rsa\; p=MIGfMA0GCSqGSIb3DQEBAQUAP4GNADCBiSKBgQCtjqQFkSs8F21zammEgYcngcs5g0P+WdWZc1/pRg69MysdVuiXnVnkY7m56sjVwtbJ3vJf4fe+BZlAS78FtTnxGnIirgB6qrRrn1Ohxbj65scxuZF+Ipes8iKnxIlnkRt05mrdiLOcZYTczk56gh5xn52Osl2WBxVWa4n6bht1QIDAQBN
Adding \ before ; Is it fine, is there any way to remove this?