DNS Zone TXT Records limited to 255 characters - need more

0

Good day,

New to Amazon Lightsail here. Migrating my instance off another vendor. Instance, firewall, static ip - all went ok. Now setting up my DNS Zone. One of my DNS TXT records is about 400 characters long. It is a google-generated DKIM record which contains key-value pairs including a public key.

When I try to add the record in the DNS Zone Editor, an error pops up: "Each line must be between 0 and 255 characters and contain only printable ASCII characters". But since the 400 characters contain a public key, I don't think I should break it up. Is there any solution to this?

Thanks -Ricardo

Edited by: RigaDorje on Jun 17, 2019 7:42 PM

Edited by: RigaDorje on Jun 17, 2019 7:43 PM

已提問 5 年前檢視次數 983 次
2 個答案
0
已接受的答案

Strings in SPF and TXT records should be no longer than 255 characters. However to get around this limitation, per RFC 4408 a TXT or SPF record is allowed to contain multiple strings, which should be concatenated together by the reading application.
-- https://kb.isc.org/docs/aa-00356

profile picture
David G
已回答 5 年前
profile pictureAWS
專家
AWS-SUM
已審閱 10 天前
0

Hi David G,

Thanks for the information and the reference link. I broke up the long string by making several lines each less than 255 chars (separated using the Enter key) -- trusting that the reading application will reassemble it back correctly. The editor saved my record.

I then used Mxtoolbox's DKIM Lookup tool https://mxtoolbox.com/dkim.aspx to query the DNS record. It interpreted the DKIM record correctly.

Thank you! -Ricardo

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南