The TXT record provides text information to sources outside your domain. The text can be either human or machine-readable and can be used for a variety of purposes. Typically, it contains general information about the domain name and also valuable details for verification purposes and email validation.
The TXT record has the following look
Why do you need a TXT record?
Many providers such as Google, Office 365, etc, often require a special verification code via TXT record to be added in your DNS zone. That way you prove to them you are the actual owner of that particular domain name.
Another common use of the TXT record is for SPF, DKIM, and for DMARC domain keys as well.
What is DKIM Record?
DKIM (DomainKeys Identified Mail) is a mechanism that allows senders to associate a domain name with an e-mail message. In technical terms, DKIM is a technique to authorize a domain to associate its name to an email message through cryptographic authentication.
What is DMARC Record?
DMARC (Domain-based Message Authentication, Reporting, and Conformance) is a mechanism that allows the e-mail senders and receivers to determine or not a given message is legitimately from the sender, and what to do if it isn’t. The DMARC record allows easier to identify spam and/or phishing messages, received in the Customers’ mailbox, and to keep them out of there.