Article overview

Help article

Setting a TXT record

In this article, we explain how to set a TXT record within the DNS settings of your domain name.

TXT is an abbreviation for Text and unlike other DNS records, it does not point to a location. The TXT record is intended to give information to the server that requests the TXT record.

Where do I add an TXT record?

You can add all your DNS records easily and free of charge via your control panel. Go to the 'Domain & Hosting' tab and click the domain in the left column for which you want to set the TXT record (do not check).

Now scroll to 'Advanced Domain Settings', followed by 'DNS'. If you do not see this yet, first click the switch behind 'TransIP settings' so the TransIP settings are switched off. This will show an overview of your DNS records .

How do I set an TXT record?

There are several applications of the TXT record, of which the so-called SPF and DKIM records are the most used applications.

SPF Record

SPF stands for Sender Policy Frame and is used to check whether the sending mail server has permission to send email from a domain name.

In the example below, you see the SPF record from a web hosting package.

spf example


In our example, we want to send email from our primary domain. We indicate this by filling in an @ under 'Name'.

If you want to set an SPF record for a subdomain, you only enter the subdomain. Our DNS software adds your domain name to the background.


The 'TTL' of a DNS record determines how long the record can remain in the cache. We recommend keeping the TTL low, for example at 1 or 5 minutes.


Because an SPF record is a variation on the TXT record, we choose 'TXT' under 'Type'.


In the example above, the full value is as follows: v=spf1 ~all

The different parts of the value of this SPF record have the following meaning:

  • v=spf1: This means that SPF version 1 is used.
  • This section indicates that the conditions for the SPF record for must also apply to this SPF record.
  • ~ all: This indicates that emails are allowed regardless of whether they match the variables in the record, the emails are then marked.

An SPF record can be set up in different ways, but always starts with v = spf1 and is always best closed with ~all or -all. In between, you specify the condition of the SPF record.

Find more information about SPF records and several tools for creating and checking of SPF records on this website.

DKIM record

DKIM (DomainKeys Identified Mail) is used to check the validity of the sender of emails. When sending emails, a digital signature is then sent. This is checked by means of the key which is included in the DKIM record.

When you have purchased a web hosting package on your domain, you use three DKIM records that we have created for you. Check this article for more information about the DKIM records and other DNS records of our web hosting packages.

If you send email from your own mail server, it is important that you install and configure DKIM on this.

Using this DKIM generator, you can then create a DKIM record and corresponding 'keys' yourself. You enter the domain in the first box, for 'Selector' you give the DKIM record a name, for example 'key1'.

On this page you can then check whether your DKIM record is correct.

Below you can see an example of a correct DKIM record:

dkim example

The _domainkey component of the 'Name' indicates that you are entering a DKIM key for the domain name.

When using the aforementioned DKIM generator, you can enter a name for the key. In our example, we have named the key 'key1'. This is then displayed under 'Selector Record' as IN TXT.

In that case, you only enter key1._domainkey as 'Name' of the DNS record. Our DNS software adds the domain name in the background.


The 'TTL' of a DNS record determines how long the record can remain in the cache. We recommend keeping the TTL low, for example at 1 or 5 minutes.


Because a DKIM record is a variation on the TXT record, we choose 'TXT' under 'Type'.


In the example above, the full value is as follows:

v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAubTwESpoF65AFY fIfGZKMlv7jbut8G1dWEMAAJCVK+etw4dY8rllw40d6Ev8bBRHmfai0qA68jSFzGKUD4iwuzOpCK mz2uZmtriCIgQ8vFjogNZEoR710UvqqHtRxY7wsR8v04BRxjSnnDf7FhNzO4PV5mpCElecd3mGqH K3EnEvlImmgGMPsiegu6RYF8z0Eukn9NS7J2W+Q0Urzymxdt9DJCQ+wwqZUdvPETz4PuiX3WaY9y FIuXywnIQ3lxWyeb2RX9xJPPbSsNBIUKExgn7QrAhxz1ApsyIbfUpDz+Xh4huJMv9QWaF9HJVQyT f5k01Tm4P0IG82Hb1e9sQXQIDAQAB

If you use the DKIM generator, you will see the value for your DKIM record under 'Selector Record'. If we use our example, the value "k=rsa\; p=MIGfMA0...QIDAQAB" is displayed.

Please note: When filling in your DKIM record, it is important that you do not copy the quotation marks (") at the beginning and the end of the value. The same applies to forward and backslashes (/ and \).

The quotation marks are added to the background by our DNS software; the slashes are also superfluous.

Based on the above, you can now add your own DKIM record.


The SPF and DKIM records are most used. Other applications for TXT are, for example, DMARC records. These can be used to indicate that emails are protected by, for example, SPF or DKIM and tells the receiver what to do if none of these methods succeed.

This type of record is an extra security measure but is not used very often. Also check out this page for more information.

Other validation

Another application of TXT is the ability to perform validation of various web applications, such as the Google site verification. Also, check out this page from Google for more information. Below is an example of a TXT record that includes Google's site verification.

google site verification

This article has discussed the setting of an TXT record. For a general explanation about DNS records and entering them, see the article ‘What is DNS?'.

If you want to know how to, amongst other things, set the TXT records of your web hosting package, use the article 'The DNS settings of my web hosting package'.

Should you have any questions left regarding this article, do not hesitate to contact our support department. You can reach them via the ‘Contact Us’ button at the bottom of this page.

If you want to discuss this article with other users, please leave a message under 'Comments'.

Do you have a good idea?

Give us your idea! If it's popular we'll add it to the wishlist!

Has this article been helpful?

Create an account or log in to leave a rating.


Create an account or log in to be able to leave a comment.

Are you stuck?

Ask one of our specialists to assist you

Contact us