Mailing List Archive

RE: ***SPAM*** Re: Over 255 character SPF record with TinyDNS/djbdns
-----Original Message-----
From: Rob MacGregor [mailto:rob.macgregor@gmail.com]
Sent: Tuesday, February 09, 2010 2:22 PM
To: spf-help@v2.listbox.com
Subject: ***SPAM*** Re: [spf-help] Over 255 character SPF record with
TinyDNS/djbdns
Importance: Low

On Tue, Feb 9, 2010 at 18:52, <CSingh@lightspeedresearch.com> wrote:
>> I am looking for help with the correct syntax for specifying a longer
>> than 255 characters SPF record in TinyDNS. Here is what I have right
now
>> but it splits the result of the lookup after 127 characters:

> The correct approach is to use the include: tag, as specified in
> http://www.openspf.org/SPF_Record_Syntax. Just ensure you watch the
> number of DNS lookups - there's a limit of 10 and each include will
> use one, A will use 2 and MX will use at least 3.
>
> You should also list the IP addresses first and where possible break
> the A and MX records down - since your current MX and A records are
> covered by the IP ranges listed you can simply remove them.


Thanks for your response but I am not sure if I understood correctly. I
used SPF setup wizard at this location to set it up:

http://old.openspf.org/wizard.html?mydomain=lightspeedaheadnewsletter.co
m

the include: tag syntax appears to be true for BIND but it looks like it
has to be ip4\072IPAddress for TinyDNS.

Splitting the lookup output for records over 127 characters is a tinyDNS
known issue, also referred to here:
http://www.anders.com/projects/sysadmin/djbdnsRecordBuilder/#SPF


SPF employs text records and tinydns silently splits text records larger
than 127 characters leaving the reconstruction to the client DNS
software. Usually this isn't a problem, but if your records are longer
than 127 characters and you don't want to trust arbitrary client DNS
implementations to reconstruct your SPF records, a generic record can be
used instead. Generic records support a maximum of 255 characters so if
your record is longer than that, you should look at TXT records instead

I am still searching for the correct syntax but unsuccessful so far.

Charan

This email is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email by mistake, please delete it from your system immediately and notify the sender. Email transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission.



-------------------------------------------
Sender Policy Framework: http://www.openspf.org [http://www.openspf.org]
Modify Your Subscription: http://www.listbox.com/member/ [http://www.listbox.com/member/]

Archives: https://www.listbox.com/member/archive/1020/=now
RSS Feed: https://www.listbox.com/member/archive/rss/1020/
Powered by Listbox: http://www.listbox.com
Re: ***SPAM*** Re: Over 255 character SPF record with TinyDNS/djbdns [ In reply to ]
On Tue, Feb 9, 2010 at 21:22, <CSingh@lightspeedresearch.com> wrote:
>
> Thanks for your response but I am not sure if I understood correctly. I
> used SPF setup wizard at this location to set it up:
>
> http://old.openspf.org/wizard.html?mydomain=lightspeedaheadnewsletter.co
> m
>
> the include: tag syntax appears to be true for BIND but it looks like it
> has to be ip4\072IPAddress for TinyDNS.

Please, read the link I provided. The include: tag is *nothing* to do
with BIND but is an SPF record tag.

> Splitting the lookup output for records over 127 characters is a tinyDNS
> known issue, also referred to here:
<---SNIP--->
> I am still searching for the correct syntax but unsuccessful so far.

If you'd read that URL I provided, listing the *official* record
syntax, you'd already know ;)

1) Break your single record up into TXT and SPF records (since I see
you publish both) totalling no more than 127 characters:

spf1.lightspeedresearch.com: v=spf1 ip4:1.0.0.0/32 ip4: 2.0.0.0/24 ... -all
spf2.lightspeedresearch.com: v=spf1 ip4:12.0.0.0/16 ip4:13.0.0.0/8 ... -all

2) Bring them all together:

lightspeedresearch.com: v=spf1 include:spf1.lightspeedresearch.com
include:spf2.lightspeedresearch.com -all

Remember to keep your SPF and TXT record types in sync to avoid confusion.

--
Please keep list traffic on the list.

Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn't become a monster. Friedrich Nietzsche


-------------------------------------------
Sender Policy Framework: http://www.openspf.org [http://www.openspf.org]
Modify Your Subscription: http://www.listbox.com/member/ [http://www.listbox.com/member/]

Archives: https://www.listbox.com/member/archive/1020/=now
RSS Feed: https://www.listbox.com/member/archive/rss/1020/
Powered by Listbox: http://www.listbox.com