Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

I've inherited a TinyDNS configuration that have following entries for SPF:

@domain.com:x.x.x.3:a::86400
@domain.com:x.x.x.103:c:10:86400

=domain.com:x.x.x.3:86400
=mail.domain.com:x.x.x.3:86400
=mail.domain.com:x.x.x.103:86400

'domain.com:v=spf1 ip4\072x.x.x.3 ip4\07231.130.96.103 ptr\072mail.domain.com +mx a -all:3600
'mail.domain.com:v=spf1 ip4\072x.x.x.3 ip4\072x.x.x.103 ptr\072mail.domain.com +mx a -all:3600
'a.mx.domain.com:v=spf1 ip4\072x.x.x.3 ip4\072x.x.x.103 ptr\072mail.domain.com +mx a -all:3600

This is the result from http://www.kitterman.com/spf/validate.html

SPF record lookup and validation for: domain.com

SPF records are primarily published in DNS as TXT records.

The TXT records found for your domain are:
v=spf1 ip4:x.x.x.3 ip4:x.x.x.103 ptr:mail.domain.com +mx a -all 

SPF records should also be published in DNS as type SPF records.
No type SPF records found.

Checking to see if there is a valid SPF record. 

Found v=spf1 record for domain.com: 
v=spf1 ip4:x.x.x.3 ip4:x.x.x.103 ptr:mail.domain.com +mx a -all 

evaluating...
SPF record passed validation test with pySPF (Python SPF library)!

I'm struggling with this from yesterday and cant figure it why this validator returns No type SPF records found. I see in BIND we cand define SPF type record with example.com. IN SPF "v=spf1 a -all", but in TinyDNS we only have TXT records that we set for SPF, maybe this is a problem?

share|improve this question

marked as duplicate by MichelZ, MadHatter, mdpc, Jenny D, dawud Apr 26 at 7:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
And yes, that last line describes the problem exactly. Make a record of type SPF that exactly mirrors the record of type TXT. –  MadHatter Apr 25 at 20:35

2 Answers 2

The SPF RR Type is not available in all DNS server implementations, which is why the RFCs allow consumers to fallback to TXT record evaluation.

If TinyDNS has no SPF record types, your configuration is just fine.

share|improve this answer

You can manually enter a spf (type 99) record in tinydns format. The trick is that you have to include the length of the data in octal format.

You can use the wizard at http://anders.com/projects/sysadmin/djbdnsRecordBuilder/#SPF to generate a generic txt (type 12) record, then just change the 12 to 99 and you have a SPF record.

Here is an example:

:example.com:99:\041v=spf1 ip4\072192.168.001.01/30 -all:3600

The first : means a generic record for example.com. The 99 specifies record type 99. The \041 is octal for 33, the number of characters in the data. \072 is octal for :, count all encoded octal characters as 1 char.

Credit goes to Robert Thille for his post - http://osdir.com/ml/mail.spam.spf.help/2006-12/msg00065.html

share|improve this answer

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