DNS 记录

DNS 记录

我正在尝试在 DNS 上设置 DKIM

DNS 记录

robot._domainkey.dynaccount.com       IN TXT     "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu01ErHYuvyzng2KNnd4akmuCdV6nu8oxASIBcORwG8+RpCSdQ+SCcroaj2CwN+sHIayBAodHWIFW4TJzzz26TN+jGXO/P5M2RAgVOOkL0Dz0Cz580f4E+e5fYao4dgYT5FPN+Ny+CJRZRK2/JxpV" "1wY/vE7eb+jzngB1p9vvBKqLgn+9PAUM6dUNOAwYpw7Mg7egWA3N/4J8UDyJ9KV8tHpbiOOOR8lmFUJ88KTZyAKp2Ae9Csv2D3ZbOS12xSDasMf0rlVOua8wQaerEmyN8ssaMTmDUoE8B/HrK2PBma3rek9BMTYy+9yrctaGhuMqAeV6BA8uipQJx3/viTvwAQIDAQAB"

在测试邮件时http://dkimvalidator.com/一切似乎都很好,除了我得到这个

Public Key DNS Lookup

Building DNS Query for robot._domainkey.dynaccount.com
Retrieved this publickey from DNS: 

Validating Signature

result = invalid
Details: public key: not available

距离我更新 DNS 已经过去好几个小时了。也许是记录有问题IN TXT,不可用?!

答案1

没有终止句点的区域文件附加域名..

正确的 DNS 记录是

robot._domainkey.dynaccount.com.       IN TXT     "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu01ErHYuvyzng2KNnd4akmuCdV6nu8oxASIBcORwG8+RpCSdQ+SCcroaj2CwN+sHIayBAodHWIFW4TJzzz26TN+jGXO/P5M2RAgVOOkL0Dz0Cz580f4E+e5fYao4dgYT5FPN+Ny+CJRZRK2/JxpV" "1wY/vE7eb+jzngB1p9vvBKqLgn+9PAUM6dUNOAwYpw7Mg7egWA3N/4J8UDyJ9KV8tHpbiOOOR8lmFUJ88KTZyAKp2Ae9Csv2D3ZbOS12xSDasMf0rlVOua8wQaerEmyN8ssaMTmDUoE8B/HrK2PBma3rek9BMTYy+9yrctaGhuMqAeV6BA8uipQJx3/viTvwAQIDAQAB"

你所拥有的是:

dig robot._domainkey.dynaccount.com.dynaccount.com TXT

; <<>> DiG 9.10.3-P4 <<>> robot._domainkey.dynaccount.com.dynaccount.com TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49945
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;robot._domainkey.dynaccount.com.dynaccount.com.        IN TXT

;; ANSWER SECTION:
robot._domainkey.dynaccount.com.dynaccount.com. 7200 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu01ErHYuvyzng2KNnd4akmuCdV6nu8oxASIBcORwG8+RpCSdQ+SCcroaj2CwN+sHIayBAodHWIFW4TJzzz26TN+jGXO/P5M2RAgVOOkL0Dz0Cz580f4E+e5fYao4dgYT5FPN+Ny+CJRZRK2/JxpV" "1wY/vE7eb+jzngB1p9vvBKqLgn+9PAUM6dUNOAwYpw7Mg7egWA3N/4J8UDyJ9KV8tHpbiOOOR8lmFUJ88KTZyAKp2Ae9Csv2D3ZbOS12xSDasMf0rlVOua8wQaerEmyN8ssaMTmDUoE8B/HrK2PBma3rek9BMTYy+9yrctaGhuMqAeV6BA8uipQJx3/viTvwAQIDAQAB"

;; Query time: 108 msec
;; SERVER: 10.5.31.9#53(10.5.31.9)
;; WHEN: Mon Oct 16 15:53:05 Eastern Daylight Time 2017
;; MSG SIZE  rcvd: 499

相关内容