spf-discuss
[Top] [All Lists]

Re: Re: The IANA has assigned us DNS number 99 for SPF

2005-07-12 04:57:15
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephane Bortzmeyer wrote:
On Tue, Jul 12, 2005 at 07:25:12AM -0400,
 Michael Weiner <hunter(_at_)userfriendly(_dot_)net> wrote 
 a message of 50 lines which said:


So, which is correct


According to RFC 3597, the length is the length of the RDATA (resource
data). Does it include the length itself, like Florian assumes? I do
not think so, because of this example in the RFC:

   If the RDATA is of zero length, the text representation contains only
   the \# token and the single zero representing the length.

So, I believe I am right. The other examples in the RFC support my
claim.


other than the obvious addition of the '0b' portion of that record.


Probably a bug.


- From a nonexperts opionion, your explaination makes sense, and does fall
in line with the RFC, as you pointed out. So when i test it using "" as
an arguement i *do* get a 0 length string (i.e. \#11 0) as i would
expect, howver i will note for the record i get a 0 length string from
Florian's as well.

OK, i have a test domain, weiners.org where i have the following spf record:

"v=spf1 redirect=userfriendly.net"

converted (using your script),

\# 33 20763d737066312072656469726563743d75736572667269656e646c792e6e6574

amd using Florian's,

\# 32 76 3d 73 70 66 31 20 72 65 64 69 72 65 63 74 3d 75 73 65 72 66 72
69 65 6e 64 6c 79 2e 6e 65 74

I am somewhat concerned they dont exactly match, and i am just trying to
understand why, not picking on either script - but i would expect it
should generate the same record. Now my next dummy question for the day,
is so should the record in the zone be:

weiners.org.    300     IN      TYPE99 "v=spf1 redirect=userfriendly.net"

or the converted string? Sorry to ask somewhat silly questions - lack of
caffeine....

Thanks
Michael
- --
Darwin Kernel Version 8.1.0: root:xnu-792.1.5.obj~4/RELEASE_PPC
Load Averages: 5.10 4.70 4.55
CPU Usage:  22.5% user 77.5% sys 0.0% idle
Memory Usage:   114M wired  599M active  260M inactive  974M used 49.9M free
- -=- This AutoSig was generated on 07/12/2005 at 07:42. -=-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFC07AbSi7P5a7gZLQRAg6xAJ4xoDB5ye5UaOd5Eky/63B4q22nwgCgpsxX
EMNHB8BpFuJyWNgbx+vNEDw=
=M4cW
-----END PGP SIGNATURE-----