spf-discuss
[Top] [All Lists]

Re: TXT lookup problem

2004-11-19 08:43:57
In 
<Pine(_dot_)LNX(_dot_)4(_dot_)44(_dot_)0411191030160(_dot_)970-100000(_at_)bmsred(_dot_)bmsi(_dot_)com>
 "Stuart D. Gathman" <stuart(_at_)bmsi(_dot_)com> writes:

Ok, my DNS library give me a list of TXT records.  I currently 
go through the list looking for exactly 1 record that begins with
"v=spf1".  Now it appears that I must glue these two pieces together.

Correct, and according to both spf-draft-200406 and
draft-lentczner-spf-00, you need to glue the two strings together
without adding any spaces or anything.

But how do I know when to stop gluing?

You must only glue together strings that are part of the same TXT
record.  You must not glue together strings found in different TXT
records. 


                                                  Also, I thought
that the order of TXT record returned from a query was not guarranteed?

The order of TXT records is not guarrenteed to stay the same, and they
generally rotate in round-robin fashion.

The strings found in a single TXT record, however, stay the same.


So, is my DNS library broken?  Or is the pobox.com SPF record broken?
Or am I missing something?

It could be your DNS library is broken, or it could be that you need
to carefully look at the results that you are being given.  Maybe you
are actually give a list of lists of strings, but you are flattening
them to just a list of strings.


-wayne


<Prev in Thread] Current Thread [Next in Thread>