Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

multiple entries for TXT record

7,910 views
Skip to first unread message

enigmedia

unread,
Oct 26, 2012, 9:08:32 AM10/26/12
to bind-...@lists.isc.org
Hi All: I have an SPF record for a domain, and I need to add an authorization
record for Godaddy as well. Is the correct syntax as follows (using shorthand
for origin):

TXT IN ("v=spf1 a mx ptr ip4:65.49.39.152/29 ~all"
"DZC=DlaVBmG")

(there is an extra space at the end of the first line, after the quote mark.)

I've checked it on a few third-party websites, and it either appears as:

"v=spf1 a mx ptr ip4:65.49.39.200/29 ~all" "DZC=DlaVBmG"

or

"v=spf1 a mx ptr ip4:65.49.39.200/29 ~all"
"DZC=DlaVBmG"

Is this the correct syntax?

TIA


Stephane Bortzmeyer

unread,
Oct 26, 2012, 10:16:52 AM10/26/12
to enigmedia, bind-...@lists.isc.org
On Fri, Oct 26, 2012 at 06:08:32AM -0700,
enigmedia <onlin...@enigmedia.com> wrote
a message of 29 lines which said:

> TXT IN ("v=spf1 a mx ptr ip4:65.49.39.152/29 ~all"
> "DZC=DlaVBmG")

This is *one* TXT record made of two strings. Whether or not the SPF
standard mandates it, it would be cleaner, IMHO, to have *two* TXT
records.

TXT IN "v=spf1 a mx ptr ip4:65.49.39.152/29 ~all"
TXT IN "DZC=DlaVBmG"


enigmedia

unread,
Oct 26, 2012, 9:31:31 AM10/26/12
to bind-...@lists.isc.org
Thanks Stephane: I wasn't sure if I was "allowed" to have more than one TXT
record in a zone, and when I googled around the only references I saw were to
concatenating multiple name-value pairs into a single record.

I originally tried adding a second record, but when I did this and used some
testing websites to check the TXT records for the zone, they only returned the
first one, so I wasn't sure if having more than one was valid.

These two name-value pairs are not for the same purpose, so I will split them
into to two separate records.


Stephane Bortzmeyer

unread,
Oct 26, 2012, 10:37:50 AM10/26/12
to enigmedia, bind-...@lists.isc.org
On Fri, Oct 26, 2012 at 06:31:31AM -0700,
enigmedia <onlin...@enigmedia.com> wrote
a message of 34 lines which said:

> I wasn't sure if I was "allowed" to have more than one TXT record in
> a zone, and when I googled around the only references I saw were to
> concatenating multiple name-value pairs into a single record.

I've now checked RFC 4408, the SPF standard and such a single record
would be illegal (section 3.1.3 of the RFC), since it would not be
legal SPF syntax.

> I originally tried adding a second record, but when I did this and
> used some testing websites to check the TXT records for the zone,
> they only returned the first one, so I wasn't sure if having more
> than one was valid.

Many DNS tool are buggy in that respect: they forget that several
records of the same type and name are possible (it is common for A and
AAAA records, for instance).

enigmedia

unread,
Oct 26, 2012, 9:47:36 AM10/26/12
to bind-...@lists.isc.org
Thanks again for the clarification! I've emended the entry into two separate
TXT records.


0 new messages