Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Max. Number of char in a TXT Record
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Darvin Denmian  
View profile  
 More options Mar 26 2009, 12:16 pm
Newsgroups: comp.protocols.dns.bind
From: Darvin Denmian <darvin.denm...@gmail.com>
Date: Thu, 26 Mar 2009 13:16:12 -0300
Local: Thurs, Mar 26 2009 12:16 pm
Subject: Max. Number of char in a TXT Record
Hello,

I have some questions:

1) Anybody know the maximum number of characters allowed in a TXT field?

2) What is the maximum number of includes inside a SFP field?

Sorry for the bad english :(

Thanks !
_______________________________________________
bind-users mailing list
bind-us...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Darcy  
View profile  
 More options Mar 26 2009, 7:19 pm
Newsgroups: comp.protocols.dns.bind
From: Kevin Darcy <k...@chrysler.com>
Date: Thu, 26 Mar 2009 18:19:46 -0500
Local: Thurs, Mar 26 2009 7:19 pm
Subject: Re: Max. Number of char in a TXT Record
Darvin Denmian wrote:
> Hello,

> I have some questions:

> 1) Anybody know the maximum number of characters allowed in a TXT field?

A simple question, but a complicated answer.

You may have multiple "strings" in a single TXT record. Each "string"
may be up to 255 characters in length, with a "length byte" indicating
the size of the "string"'s payload. I don't believe there is any
arbitrary limitation on the number of "string"s in a TXT record, but the
RDATA itself may not exceed 65535 bytes in total, which is comprised of
both the length-bytes and payloads of all "string"s contained therein.
That 64K limit is a general restriction on DNS records of all types, not
specific to TXT records.

Note that any DNS response which exceeds 512 bytes is slightly
undesirable, since in the absence of EDNS0 (which the vast majority of
-- but not all -- implementations honor these days), responses which
exceed 512 bytes will signal truncation and prompt a retry via TCP. It's
optimal to stay within 512 bytes if possible.

> 2) What is the maximum number of includes inside a SFP field?

I assume you mean SPF (Sender Policy Framework), the anti-SPAM(ming)
mechanism (?)

I'm no SPF expert but in glancing at the documentation it looks like
there is no arbitrary limit on the number of "include"s. Since SPF
"records" are stuffed into (one or more?) TXT records, the above limits
in the answer to question #1 would apply.

Maybe someone with better knowledge of and/or experience with SPF can
confirm or deny.

- Kevin

_______________________________________________
bind-users mailing list
bind-us...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonard Mills  
View profile  
 More options Mar 26 2009, 8:10 pm
Newsgroups: comp.protocols.dns.bind
From: Leonard Mills <l...@yahoo.com>
Date: Thu, 26 Mar 2009 17:10:33 -0700 (PDT)
Local: Thurs, Mar 26 2009 8:10 pm
Subject: Re: Max. Number of char in a TXT Record

Darvin Denmian asked:

> 2) What is the maximum number of includes inside a SFP field?

It is RECOMMENDED that SPF library implementations limit the number of DNS operations performed during a lookup to ten, to cut down on the chances of a denial-of-service exercise using SPF and to short-circuit any possible include loops.  Each lookup counts, and a lookup of an include is no exception to this rule.

If there were nothing in the base record beyond IP ranges and one or more includes, and all of the includes provided records with only IP ranges and possibly other includes, then ten total includes should be expected to work.  Stick in a ptr clause (or anything else calling for a new DNS operation), and the number of potential includes decreases.

Hope this helps,

Len

_______________________________________________
bind-users mailing list
bind-us...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vincent Rivellino  
View profile  
 More options Mar 26 2009, 8:11 pm
Newsgroups: comp.protocols.dns.bind
From: "Vincent Rivellino" <vi...@cuz.cx>
Date: Thu, 26 Mar 2009 20:11:52 -0400 (EDT)
Local: Thurs, Mar 26 2009 8:11 pm
Subject: Re: Max. Number of char in a TXT Record

On Thu, March 26, 2009 19:19, Kevin Darcy wrote:
>> 2) What is the maximum number of includes inside a SFP field?

> I assume you mean SPF (Sender Policy Framework), the anti-SPAM(ming)
> mechanism (?)

> I'm no SPF expert but in glancing at the documentation it looks like
> there is no arbitrary limit on the number of "include"s. Since SPF
> "records" are stuffed into (one or more?) TXT records, the above limits
> in the answer to question #1 would apply.

Kevin, it looks like you are correct.  From the RFC:

--------
3.1.4.  Record Size

   The published SPF record for a given domain name SHOULD remain small
   enough that the results of a query for it will fit within 512 octets.
   This will keep even older DNS implementations from falling over to
   TCP.  Since the answer size is dependent on many things outside the
   scope of this document, it is only possible to give this guideline:
   If the combined length of the DNS name and the text of all the
   records of a given type (TXT or SPF) is under 450 characters, then
   DNS answers should fit in UDP packets.  Note that when computing the
   sizes for queries of the TXT format, one must take into account any
   other TXT records published at the domain name.  Records that are too
   long to fit in a single UDP packet MAY be silently ignored by SPF
   clients.
--------

So, it appears that you can as many include's in a SPF record as you wish,
but it would be wise to keep the size of the SPF record below ~450
characters.

There is lots of good SPF information at www.openspf.org

-Vince

_______________________________________________
bind-users mailing list
bind-us...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darvin Denmian  
View profile  
 More options Mar 27 2009, 8:27 am
Newsgroups: comp.protocols.dns.bind
From: Darvin Denmian <darvin.denm...@gmail.com>
Date: Fri, 27 Mar 2009 09:27:03 -0300
Local: Fri, Mar 27 2009 8:27 am
Subject: Re: Max. Number of char in a TXT Record
I thank everyone for the responses.
Thank you for your spending a little time with my question.

_______________________________________________
bind-users mailing list
bind-us...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Milligan  
View profile  
 More options Mar 30 2009, 12:54 pm
Newsgroups: comp.protocols.dns.bind
From: Michael Milligan <mi...@acmeps.com>
Date: Mon, 30 Mar 2009 10:54:27 -0600
Local: Mon, Mar 30 2009 12:54 pm
Subject: Re: Max. Number of char in a TXT Record

Darvin Denmian wrote:
> Hello,

> I have some questions:

> 1) Anybody know the maximum number of characters allowed in a TXT field?

255 for each string.  E.g.,

@      TXT  "v=spf1 mx ip4:216.208.1.1 a:mail01.mydomain.com
a:mail02.mydomain.com"  " a:mail03.mydomain.com
include:something.else.com -all"

Notice there are two sets of quoted text here to simulate the entire TXT
string being longer than 255 chars.  You'd just split it up into
multiple quoted strings that each are not longer than 255 chars.

Note that there is a leading space in the second string.  For SPF
processing, these TXT strings are concatenated together as-is and
without the leading space in the second string, it would generate a
syntax error.

> 2) What is the maximum number of includes inside a SFP field?

Don't chain them more than 2 or 3 times, you'll run into SPF processing
limits.  If you have to use more than that, then you need to rethink
you're matching approach.

The RFCs on the subject limit DNS lookups to 10, that includes the TXT
record itself, any A, MX and PTR records that have to be looked up by
name, and any further "include:" lookups and associated records.  A
Permanent Error will be returned if you exceed the 10 lookup limit.

See http://www.openspf.org/, there are tools, tips and tricks to help you.

Regards,
Mike

--
Michael Milligan                                   -> mi...@acmeps.com
_______________________________________________
bind-users mailing list
bind-us...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »