Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is this possible? Like a wildcard TXT record of some sort?

share|improve this question
up vote 4 down vote accepted

Yes, it is possible to define a wildcard TXT record. Notice that you should define both a TXT RR and a SPF RR.

In my home I run a local DNS server with the .fbh domain extension, I have created this record:

*.email         IN  TXT "v=spf1 mx -all"

And this gives me the same response for all queries to *.email.fbh:

$ dig +short TXT
"v=spf1 mx -all"

$ dig +short TXT
"v=spf1 mx -all"
share|improve this answer
I was under the impression that SPF RRs were not implemented in the standard yet. – Belmin Fernandez Dec 26 '11 at 1:46
For reference: see 3.1.1 – Frands Hansen Dec 26 '11 at 1:49

You can, however, include a central spf record in the invidual subdomain spf records.

Each individual spf records for the subdomains could look like this:

v=spf1 include:_spf.domain.tld ~all

And then add a TXT record for _spf.domain.tld with the actual spf values:

v=spf1 ip4: ~all

This way, you only need to maintain _spf.domain.tld, and not the records for the individual subdomains

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.