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
검토됨 11일 전
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠