Skip to main content

How to Add a TXT Record to a DNS Zone in WHM

Add a TXT record to a DNS zone in WHM to provide information such as SPF, DKIM, or other verification data for a domain. This procedure is performed by a Server Administrator.

Add a TXT record to a DNS zone in WHM to provide information such as SPF, DKIM, or other verification data for a domain. This procedure is performed by a Server Administrator.

Before you begin

You will need:

  • Server Administrator access to WHM

  • The domain name for which you are adding the record

  • The specific TXT value (e.g., an SPF record or a verification string) provided by your service provider

Adding a TXT Record

  1. Log in to WHM.

  2. Navigate to DNS Functions > DNS Zone Manager.

  3. Select the domain from the list and click Change.

  4. Locate the Record Type dropdown and select TXT.

  5. Enter the Name (or Host) for the record. Use the @ symbol or leave it blank to represent the root domain, or enter a subdomain (e.g., _dmarc).

  6. Enter the TTL (Time to Live). The default value is typically sufficient unless you have a specific requirement.

  7. Enter the Record Value (or Text). This is the data you wish to associate with the record.

  8. Click Save or Add Record to apply the changes.

Confirm the result

  • The record will appear in the list of records for that DNS zone.

  • You can verify the record is live by using a tool like dig or nslookup from a terminal: dig TXT example.com

  • The output should display the TXT record value you entered.

Limitations

  • Changes to DNS records may take time to propagate across the internet. The duration depends on the TTL (Time to Live) value of the record and the caching policies of various DNS resolvers.

  • Ensure the TXT value does not contain any illegal characters or extra spaces that could cause the record to be ignored by mail servers or other services.

Did this answer your question?