Report this

What is the reason for this report?

Create a DNS TXT record with multiple lines?

Posted on March 16, 2026

Greetings, for email security purposes, I need to create a DNS TXT record that has multiple lines of text with line breaks. Unfortunately, the interface gives me an error when trying to do that. Is there a workaround?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya, @helpdeskdeba0b8

If you need a long TXT value (like a DKIM key), split it into multiple quoted strings within the same record. Most DNS providers, including DO will concatenate them automatically. So instead of one giant string, you’d enter something like:

Let me know if this is a DKIM record or another DNS record and I can help you set it.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.