Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Format of TXT records in a DNS server?



You should put all the key-value pairs in one text record.

The DNS-SD protocol specification describes the format for Bonjour TXT records as consisting of "zero or more strings, packed together in memory without any intervening gaps or padding bytes for word alignment. The format of each constituent string within the DNS TXT record is a single length byte, followed by 0-255 bytes of text data."

Listing 2: TXT record formated as length byte, data, length byte, data...

\011txtvers=1\020path=/index.html\025note=Bonjour Is Cool!



On Mar 26, 2007, at 5:15 PM, Michael Bishop wrote:

Hello all,

I would like to add DNS-SD-style records to a test DNS server and I would like to use multiple key-value pairs for the TXT records.

Does anyone know if I need to make multiple TXT records or to somehow format all the KVPs in one record?

In other words, are the TXT records in the following, legal?

_the_service._tcp    PTR  Tester. _the_service._tcp

Tester. _the_service._tcp  SRV 0 0 1666 machine.testdomain.com.
                           TXT name=John
                           TXT dob=2006/12/21

Thanks ,

_ michael

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


----------------------------------

Amandeep Jawa

Sr. Software Engineer

Applications: iTunes

----------------------------------

email@hidden

1 408-974-8370


personal: http://www.deeptrouble.com

political: http://www.sflcv.org




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden

This email sent to email@hidden

References: 
 >Format of TXT records in a DNS server? (From: Michael Bishop <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.