How to Add DNS Records for Email Authentication: Host Fields
If you’re working out how to add dns records for email authentication, first save your existing records and confirm how your DNS host turns each Host or Name entry into the full domain name. Add each supplied SPF, DKIM or DMARC record at its intended name, using the specified type and value, and check existing records before saving so you don’t overwrite working settings or create a duplicate SPF policy.
The key is knowing what your host adds for you: for example, GoDaddy’s TXT record form accepts a name prefix and uses @ for the root domain. This guide walks through host fields, TXT records versus supplied CNAME aliases, quotes and long DKIM values, and duplicate-policy checks. Then you’ll verify the published DNS answers and test an actual message before calling the change complete.
Before changing DNS, save what already works
Publish the supplied record type, name and value in the authoritative DNS zone, then query that published name before calling the setup complete. First, capture the working configuration so you can reverse an incorrect entry without guessing.
- Confirm where DNS is hosted. Identify the domain’s active nameservers and the provider managing its authoritative zone. Save the existing records and their TTL values, then keep a before-and-after copy of every proposed change. TTL controls how long DNS data can remain cached; an authoritative DNS answer identifies what the zone currently publishes.
- Collect instructions from every sending platform. Keep each platform’s supplied record type, host/name and value together. Gather its signing domain, DKIM selector and return-path domain. Do not substitute the visible From domain: SPF checks the SMTP MAIL FROM or HELO identity, while DKIM retrieves a key using the signature’s selector and signing domain.
- Separate policy decisions from data entry. Use SPF, DKIM and DMARC setup for high-volume senders for record construction and syntax before entering anything in DNS. Treat DMARC policy rollout as a separate decision: DMARC evaluates authentication alignment with the visible From domain, not merely whether a record exists. When partners send using your domain, review email authentication for affiliates and lead generators before changing shared settings.
- Keep the change narrow. Leave unrelated mail-routing records, including MX records, unchanged during an authentication-only update. Your rollback copy should show exactly which authentication entries to restore.
Translate Host and Name fields into the published domain
Before pasting a record, identify the complete DNS name where it needs to appear. The editable Host or Name field may take only part of that name. DNS supports both relative names and complete, absolute names, so the text you enter depends on how your host handles the zone’s domain, as explained in the DNS naming specification.
In GoDaddy’s documented interface, enter a prefix without the domain, or use @ for the root, following its TXT record name-field instructions. Other hosts may accept different input; check whether yours appends the domain automatically.
- SPF: Publish at the domain whose sending authorization the record describes—not automatically at your website’s root. SPF checks use the applicable MAIL FROM or HELO domain, according to the SPF specification.
- DMARC: For example.com, the policy lookup name is _dmarc.example.com. If the host appends example.com, enter _dmarc, following the current DMARC publication rules.
- DKIM: The lookup name follows selector._domainkey.example.com. Use the selector and signing domain supplied by your sender; these determine the DKIM key lookup name. If the host appends example.com, enter selector._domainkey, replacing “selector” with the supplied value.
Inspect the resulting complete name before saving. An automatically appended domain can turn a full-name entry into _dmarc.example.com.example.com.
For a sending subdomain such as mail.example.com, work relative to the zone you are editing. In the example.com zone, SPF for that subdomain belongs at mail, and its DMARC name is _dmarc.mail. Do not assume @ means the sending subdomain: it represents the root of the zone being edited.

Use TXT for text and CNAME for a supplied alias
Match the record type to your sending platform’s instructions before entering the value. Policy text and an alias hostname serve different purposes; putting either into the wrong record type changes what DNS publishes.
Match the Record Type to Its Job
TXT
Stores text associated with a DNS name. Put supplied authentication text in the value field.
CNAME
Makes a DNS name an alias of another name. Its value is a target domain name, not authentication policy text.
MX
Identifies a mail exchanger. Leave existing mail routing unchanged during an authentication-only update.
- TXT holds text. This is where you publish authentication policy text or a DKIM public key.
- CNAME identifies another DNS name. Its value is an alias target, not policy text.
- MX identifies a mail exchanger. It directs incoming mail rather than publishing an authentication policy.
These are different DNS record types with different meanings, not interchangeable fields in your DNS dashboard.
SPF policies are published as TXT records. Likewise, DMARC policy text belongs in a TXT record at the applicable DMARC lookup name. Use the supplied policy text as the record’s value, rather than treating it as a destination hostname.
DKIM retrieves a public key through a TXT lookup at the selector name, as defined by the DKIM DNS binding specification. If your sending platform supplies a DKIM CNAME, create that CNAME and enter its alias target as instructed. Do not put the target hostname inside a TXT record: that would publish the hostname as text instead of establishing an alias.
Leave existing MX records in place when adding SPF, DKIM or DMARC. Treat any mail-routing change as a separate task, not as part of publishing authentication records.
Handle quotes and long DKIM values without changing the key
A long DKIM value can belong in a single TXT record even when a DNS tool displays it in several quoted chunks. The TXT character-string limit is 255 octets per string, not per complete TXT record. Ordinary ASCII DKIM text uses an octet per character.
Keep Long TXT Values Inside One Record
Start with the supplied text
Keep the complete value intact while preparing the DNS entry.
Respect the string boundary
A character string holds at most <a href="https://www.rfc-editor.org/rfc/rfc1035.html">255 octets</a>. A TXT record can contain multiple character strings.
Keep chunks together
Represent the strings within the same TXT record rather than creating separate records for the pieces.
Recognize presentation quotes
Zone-file quotes delimit character strings. They are distinct from literal quotation marks contained in the text.
A longer value can therefore contain adjacent character strings within the same TXT record. Do not create separate DKIM records to hold pieces of a key. During key retrieval, DKIM joins the strings in a TXT record without adding whitespace. Preserve the supplied content, and do not insert spaces or line breaks into the key to make it easier to read.
Separate display formatting from stored content
In a DNS zone file, quotation marks delimit character strings; those delimiters are not literal quote characters in the stored value. A DNS host’s input field may handle that presentation differently. Follow the field’s expected format rather than assuming that quotes shown in a zone-file example must be pasted into the value.
After saving, inspect the returned TXT answer:
- Adjacent quoted chunks in one record: These can be a valid representation of a long value. Check the content with the chunks joined and no extra spaces added.
- Pieces returned as separate records: These are not equivalent to chunks inside one record. Correct the publication rather than expecting DKIM to assemble them.
- Visible quotation marks: Establish whether the tool is displaying string delimiters or whether literal quotes were stored before changing the record.

Check for duplicate policies before saving
Before adding a record, check what is already published at that exact DNS name. A new authentication record should work with the existing setup—not create a competing policy or remove authorization that active senders still need.
- SPF: Publish only one SPF policy record at each applicable owner name. Other TXT records, such as domain-verification tokens, can coexist; the conflict is multiple SPF policies, not multiple TXT records generally. If a sending platform supplies an SPF value for a name that already has one, reconcile its required authorization with the existing policy. Do not add another SPF policy or blindly replace the one supporting your current senders.
- DMARC: Keep one DMARC policy record at each policy name. Under the current specification, multiple DMARC policy records returned for the same lookup target are discarded. Adding another policy is not a way to combine settings or establish a fallback. The earlier DMARC specification’s policy-discovery rules also rejected duplicate policies, but that discovery algorithm has been superseded by the current standard.
- DKIM: Different selectors can coexist because each selector identifies a separate lookup name. However, split strings containing a DKIM key belong within the same TXT record at that selector; they are concatenated without added whitespace. Do not turn the chunks of a long key into separate TXT records.
Before saving, confirm the exact name being changed, which sending services depend on it, and whether you are updating an existing policy or publishing at a genuinely different name.
Verify DNS answers before blaming propagation
Check what DNS actually publishes before deciding that a change needs more time. Start with the complete record name, then compare the authoritative answer with a recursive resolver’s answer.
- Query the published names. Run dig TXT example.com for an SPF policy published at that domain, dig TXT _dmarc.example.com for DMARC, and dig TXT selector._domainkey.example.com for DKIM. Replace every example domain and selector with your actual values. SPF belongs at the domain being checked for SPF authorization; it is not necessarily your visible From domain.
- Ask the authoritative server directly. Identify a nameserver delegated for the zone, then run dig @authoritative-nameserver _dmarc.example.com TXT, substituting its hostname and your DMARC name. Compare that response with dig TXT _dmarc.example.com through your usual recursive resolver. A difference can indicate caching; an incorrect authoritative answer points back to the published configuration.
- Follow a supplied DKIM alias. Run dig CNAME selector._domainkey.example.com, inspect the target, then query that target for TXT. Confirm it returns the expected public key. DKIM verification retrieves the key using the selector and signing domain from the message.
DNS TTL and response codes help explain the results: TTL controls how long an answer may be cached, and lowering it does not retroactively shorten an answer cached under the previous value. NXDOMAIN means the queried name does not exist; NOERROR without a TXT answer can mean the name exists but has no TXT record. A resolver error such as SERVFAIL is different from either result. There is no universal propagation deadline.
If DMARC is missing, check the authoritative zone, complete owner name, TXT record type and published value against the current DMARC publication requirements before waiting longer. Keep these checks alongside your deliverability tools and resources for repeatable troubleshooting.
Test an actual message before closing the change
Send a test message through each active sending platform before you call the DNS work complete. Check the received message’s headers, not just the platform’s setup screen.
- Match DKIM to the DNS record. Find the signing domain in d= and the selector in s= within the DKIM-Signature header. Together, they identify the lookup name: selector._domainkey.signing-domain. Compare that name with the record you verified. A published key does not prove the platform signed the message correctly; verification also checks the signature against the message, as described in the DKIM specification.
- Check the SPF identity. Look at which envelope-sender domain the receiver evaluated, rather than assuming it tested the visible From address. SPF evaluates the MAIL FROM or HELO identity, so confirm that the tested domain matches the sending configuration you intended.
- Confirm DMARC alignment. Finding a DMARC policy in DNS is not enough. Under the current DMARC specification, a pass requires a passing SPF or DKIM result with the relevant authenticated domain aligned with the visible From domain.
Use this guide to how to read the Authentication-Results header to interpret the receiver’s findings. Treat a successful DNS lookup as a publication check—not the final authentication test.
If DNS resolves but authentication still fails, an email deliverability audit can help separate publication problems from sending-platform configuration. For help implementing the changes, Digital Bulldogs offers DNS authentication setup support. Book a free consult to discuss the next step; authentication alone does not guarantee inbox placement.
Frequently asked questions
Should the DNS Host field contain @, _dmarc or the full domain name?
Use the format your DNS host expects, not whichever version looks most complete. In GoDaddy’s TXT record interface, Name accepts a prefix without the domain, while @ places the record at the domain root. For a DMARC record, that prefix is _dmarc. If your host appends the domain automatically, entering the full name can put the record at the wrong address.
How do I add a DKIM TXT record when my provider supplies a CNAME instead?
If your provider supplies a CNAME, add a CNAME rather than converting its target into TXT content. Copy the supplied host and destination into their matching fields. The DKIM specification describes retrieving a TXT key using the selector and signing domain; a supplied CNAME provides an alias for that lookup. Publishing either record does not, by itself, enable message signing in your sending platform.
Why does my DKIM TXT lookup show quoted chunks?
Quoted chunks can be a normal display of a long TXT record, not evidence of a broken key. DNS permits a TXT record to contain multiple character-strings. For DKIM, those strings are joined without added whitespace. Check that the chunks belong to the same TXT record, and do not insert spaces or copy display quotes into the key merely to match the lookup output.
Why is my DMARC record not found after adding it?
First check the published name. For a policy on example.com, the intended lookup name is _dmarc.example.com; a host field that automatically appends the domain can accidentally create a different name. The current DMARC specification defines policy publication and duplicate-policy handling. Query the intended name for TXT records, then compare the authoritative answer with your saved entry before assuming caching is the cause.
Can SPF and domain-verification TXT records share the same DNS name?
Yes. An SPF policy and unrelated verification TXT records can coexist at the same DNS name. What you must avoid is publishing separate SPF policies there: SPF requires a single applicable SPF record and treats multiple selected policies as an error. Keep verification text in its own TXT record rather than appending it to the SPF value, and review existing SPF authorization before changing it.
Does lowering TTL make an already cached authentication record update immediately?
No. Lowering TTL does not reach into a resolver’s cache and replace an answer it already holds. That cached answer can remain until its existing TTL expires. For a planned change, lower TTL beforehand and allow the previous caching period to pass. After editing, compare authoritative DNS answers with recursive-resolver answers to distinguish a publication problem from an older cached response.
Sources
- RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1 · RFC Editor / Internet Engineering Task Force
- RFC 6376: DomainKeys Identified Mail (DKIM) Signatures · RFC Editor / Internet Engineering Task Force
- RFC 7489: Domain-based Message Authentication, Reporting, and Conformance (DMARC) · RFC Editor
- RFC 1035: Domain Names — Implementation and Specification · RFC Editor
- Add a TXT record · GoDaddy
- RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC) · RFC Editor / Internet Engineering Task Force

