Start for free – your first 3 months are freeSee the offer

DNS and name servers

TXT records: SPF, DKIM, DMARC and verifying your domain

Add a TXT record when Google, Microsoft or another service asks you to verify your domain – and understand SPF, DKIM and DMARC for your email.

4 min readUpdated

On this page
  1. Verify your domain with a service
  2. SPF, DKIM and DMARC
  3. Requirements for the TXT value
  4. Frequently asked questions
  5. The service says it cannot find my TXT record – what now?
  6. Can I delete the TXT record once the domain is verified?
  7. Can there be several TXT records on the same name?

A TXT record is a piece of text stored in the domain's DNS. It is mainly used for two things:

  • Proving ownership: Google, Microsoft, Facebook and many others ask you to create a TXT record with a code, so they can see that you own the domain.
  • Email security: SPF, DKIM and DMARC help recipients see whether a message from @yourcompany.com is genuine – and keep your messages out of the spam filter.

Verify your domain with a service

The service shows a code, you create a TXT record, and the service verifies the domain
How to verify your domain with a TXT record
  1. Step 1: Copy the code from the service

    The service shows a name (often @, host or empty) and a value, for example google-site-verification=…. Copy the value.

  2. Step 2: Open DNS at Sitewig

    Choose Domains → My domains, click the domain, scroll down to DNS, and press Add record.

  3. Step 3: Fill in the TXT record

    Choose Type TXT – text. Enter the name in Record name – leave it empty or enter @ if the service says @ or the domain itself. Paste the code into the Text field without quotation marks.

    The Add record panel with the TXT type and a verification code in the Text field
    TXT record with a verification code
  4. Step 4: Save and verify

    Press Add record. The change is live on the name servers within a few minutes. Go back to the service, and press its button to verify.

SPF, DKIM and DMARC

SPF, DKIM and DMARC explained as three cards
Three TXT records that protect your email
RecordNameWhat it does
SPF@Lists the servers that are allowed to send email from the domain
DKIMe.g. dkim._domainkeyPublic key, so the recipient can check the message's digital signature
DMARC_dmarcTells the recipient what to do with email that fails SPF or DKIM

If you use Sitewig Mail, Sitewig creates and maintains all three automatically. You do not need to do anything, and they cannot be edited in the table.

If you use another email provider (the Own mail server (MX) choice), Sitewig creates none of them. Create them yourself with Add record based on the provider's guide. DKIM is often given as a CNAME instead of a TXT – see CNAME.

Requirements for the TXT value

  • At most 2048 characters. The field shows a character counter. Long values such as DKIM keys are automatically split into chunks of 255 characters.
  • Enter the value without quotation marks.
  • No line breaks. If you copy a key that is split over several lines, join it into one line first.

Frequently asked questions

The service says it cannot find my TXT record – what now?

Wait 10–15 minutes and try again. Check that the name is correct (@ or empty for the domain itself), and that there are no spaces before or after the code. If the domain does not use Sitewig's name servers, the record must be created at the provider that hosts the DNS.

Can I delete the TXT record once the domain is verified?

Preferably leave it. Many services check again later and remove the verification if the record is gone.

Can there be several TXT records on the same name?

Yes. You can have several verification codes on @ at the same time – only SPF must be a single record.

Read about domains at Sitewig

Didn't find the answer?

Reply within 1 working day · Mon–Fri 8:00–17:00 CET