How to Add an SPF Record in Namecheap: Step-by-Step Guide

Learn how to add or edit an SPF record in Namecheap with step-by-step instructions. Covers exact field values, TTL settings, common mistakes, and verification.

Last updated: 2026-04-12

Namecheap is one of the most popular domain registrars, and adding an SPF record there is straightforward once you know where to look. This guide walks you through every step, from logging in to verifying that your record is live. No technical experience required. Not sure what to put in your SPF record? Start with our complete guide.

Before You Start

You need two things before adding your SPF record:

  1. Your Namecheap account login. You need access to the account that manages your domain.
  2. Your SPF record value. This is the text string you want to publish. If you are not sure what your SPF record should contain, SPF Creator can generate the correct record based on your email services.

A typical SPF record looks like this:

v=spf1 include:_spf.google.com ~all

Your record will vary depending on which email services you use (Google Workspace, Microsoft 365, SendGrid, Mailchimp, etc.). See SPF record examples for common configurations, or read the SPF syntax guide to understand each part of the record.

Check for an existing SPF record first

Before adding a new record, check whether your domain already has an SPF record. Having two SPF records causes errors. If one already exists, you need to edit it instead of creating a new one.

Step-by-Step: Adding an SPF Record in Namecheap

Log into your Namecheap account

Go to namecheap.com and sign in. You will land on your Dashboard.

Open your domain's management page

From the Dashboard, find the domain you want to configure. Click the Manage button next to it. This opens the domain management page with several tabs.

Navigate to Advanced DNS

Click the Advanced DNS tab near the top of the page (Namecheap DNS guide). This is where all your DNS records live, including any existing TXT records.

Scroll to the Host Records section

On the Advanced DNS page, look for the Host Records section. This shows all your current DNS records (A records, CNAME records, TXT records, etc.). Check if there is already a TXT record starting with v=spf1. If there is, you need to edit that record instead of adding a new one.

Click Add New Record

At the bottom of the Host Records section, click the Add New Record button. A new row will appear.

Fill in the record fields

Set each field as follows:

  • Type: Select TXT Record from the dropdown
  • Host: Enter @ (this means the record applies to your main domain)
  • Value: Paste your full SPF record, for example: v=spf1 include:_spf.google.com ~all
  • TTL: Select Automatic or set it to 30 min if you want faster propagation while testing

Make sure the Value field contains your complete SPF record, starting with v=spf1 and ending with ~all or -all.

Save the record

Click the green checkmark icon to save. Namecheap saves the record immediately, but it takes time for the change to propagate across the internet.

Editing an Existing SPF Record in Namecheap

If you already have an SPF record and need to add a new email service, do not create a second SPF record. Instead:

  1. Go to Advanced DNS as described above
  2. Find the existing TXT record that starts with v=spf1
  3. Click the pencil icon to edit it
  4. Add your new include statement before the ~all or -all at the end
  5. Click the green checkmark to save

Example: Adding SendGrid to an existing Google Workspace SPF record.

Before:

v=spf1 include:_spf.google.com ~all

After:

v=spf1 include:_spf.google.com include:sendgrid.net ~all

DNS Propagation Time

After saving your record, it does not appear everywhere instantly. DNS changes need to propagate across the internet. Here is what to expect:

  • Namecheap's own servers: Usually updated within a few minutes
  • Most DNS resolvers: 30 minutes to 2 hours
  • Full global propagation: Up to 48 hours in rare cases

If you set the TTL to a lower value (like 1 minute or 5 minutes), propagation tends to be faster. You can increase the TTL to a longer value like 30 minutes or 1 hour after you have confirmed everything is working.

Check propagation with the free tool

Use the SPF checker at the top of this page to verify your record is live. If it does not show up right away, wait a few minutes and try again.

Common Namecheap-Specific Gotchas

Using BasicDNS vs. Custom DNS

Namecheap offers two DNS modes:

  • BasicDNS (Namecheap's default nameservers): You manage DNS records directly in Namecheap's Advanced DNS panel. The steps above apply.
  • Custom DNS (third-party nameservers like Cloudflare): If you have pointed your domain to another DNS provider, you cannot manage records in Namecheap. You need to add the SPF record at your actual DNS provider instead. See our guides for Cloudflare or Route 53.

Check the Nameservers section on your domain's management page to see which mode you are using.

Quotation marks in the Value field

Namecheap does not require you to wrap the SPF value in quotation marks. Just paste the raw record:

Correct: v=spf1 include:_spf.google.com ~all

Wrong: "v=spf1 include:_spf.google.com ~all" (Namecheap adds quotes automatically)

If you paste the record with quotes, you may end up with double quotes in your DNS, which can cause SPF validation errors.

Host field for subdomains

If you want to add an SPF record for a subdomain (like mail.yourdomain.com), enter just the subdomain prefix in the Host field:

  • Host: mail (not mail.yourdomain.com)
  • Value: Your SPF record

For the main domain, always use @.

Record length limits

SPF records can be up to 255 characters in a single DNS TXT string. If your record is longer, Namecheap handles the splitting automatically in most cases. However, if you have a very complex SPF record with many includes, consider simplifying it. You can check the 10 DNS lookup limit to understand the constraints.

Verifying Your SPF Record

After waiting for propagation, verify that your record is published correctly.

1. Use the free checker. Enter your domain in the lookup tool above to see exactly what SPF record is published.

2. Send a test email. Send an email from your domain to a Gmail address. Open the email in Gmail, click the three dots, and select "Show original." Look for spf=pass in the authentication results.

3. Check with your email provider. Services like Google Workspace and Microsoft 365 have built-in tools to verify that your DNS records are configured correctly.

Complete Your Email Authentication

SPF is one part of email authentication. For the best deliverability and protection against spoofing, you should also set up:

  • DKIM — Adds a cryptographic signature to your emails. Check your DKIM setup with DKIM Test.
  • DMARC — Tells receiving servers what to do when SPF or DKIM fail. Check yours with DMARC Record Checker.

Setting up all three gives you the strongest email authentication. You can verify your complete setup with the Email Deliverability Checker.

References

Never miss an SPF issue

Monitor your SPF, DKIM, DMARC and MX records daily. Get alerts when something breaks.

Start Monitoring