TXT record

I am trying to set SPF record to my domain but I am encountering problems naming TXT record.

I try to store it this way: www.drake127.cz. TXT "v=spf1 -all" but I get following "error": /tmp/linode-named-checkzone.txt:16: ignoring out-of-zone data (www) and zone itself contains only this record: www. TXT "v=spf1 -all"
Not sure why? Could somebody explain this behaviour to me?

4 Replies

The name portion of DNS records has the domain name appended to it. When you put in www.drake127.cz, you're really defining a TXT record for www.drake127.cz.drake127.cz. To define a TXT record for drake127.cz, leave the name portion empty.

Also, I'm not sure if it's what you intend, but the way you're defining your SPF it says your domain never sends mail.

> The name portion of DNS records has the domain name appended to it. When you put in www.drake127.cz, you're really defining a TXT record for www.drake127.cz.drake127.cz. To define a TXT record for drake127.cz, leave the name portion empty. I see, "@" did not work. I'll try that and let know when DSN propagate.

@irgeek:

Also, I'm not sure if it's what you intend, but the way you're defining your SPF it says your domain never sends mail. Yup, I do not intend sending emails from subdomains.

@irgeek:

The name portion of DNS records has the domain name appended to it. When you put in www.drake127.cz, you're really defining a TXT record for www.drake127.cz.drake127.cz. To define a TXT record for drake127.cz, leave the name portion empty.

Note that the original example was 'www.drake127.cz.", with a trailing period, and so the domain should not have been appended. Bug in the DNS manager?

If you are setting your SPF you want it to apply to your email domain (after the @ sign) anyway. So in your case it is probably supposed to be:

@ TXT "v=spf1 -all"

Note: @ is a shortcut for the current domain in DNS.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct