Mailing Lists: Apple Mailing Lists

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

How do I update the text record?



I'm getting strange behavior when updating my service's TXT record. I'm running Bonjour 1.0 on XP using the DLL.NET bindings. My call to DNSService.UpdateRecord() passes null for the record reference and 0 for the timeout, so my understanding is that it should just update the TXT record and give it the default timeout.

When other clients resolve my service, they get all the previous TXT records, not just the latest updated version. If I run "killall - info mDNSResponder", before and after a record update, it looks like this:

***** before *****

Jun 29 18:25:26 JFK : * 3522 PTR en0 23 _foo._tcp.local. PTR 513._foo._tcp.local.
Jun 29 18:25:26 JFK : 89 -SRV en0 17 513._foo._tcp.local. SRV DDE.local.
Jun 29 18:25:26 JFK : 4440 -TXT en0 54 513._foo._tcp.local. TXT txtvers=1
Jun 29 18:25:26 JFK : 4440 -TXT en0 74 513._foo._tcp.local. TXT txtvers=1
Jun 29 18:25:26 JFK : 4440 -TXT en0 57 513._foo._tcp.local. TXT txtvers=1
Jun 29 18:25:26 JFK : * 3522 PTR en0 19 _services._dns- sd._udp.local. PTR _foo._tcp.local.
Jun 29 18:25:26 JFK : 149: DNSServiceBrowse _foo._tcp.local.


***** after *****

Jun 29 18:25:38 JFK : * 3511 PTR en0 23 _foo._tcp.local. PTR 513._foo._tcp.local.
Jun 29 18:25:38 JFK : 77 -SRV en0 17 513._foo._tcp.local. SRV DDE.local.
Jun 29 18:25:38 JFK : 4499 -TXT en0 54 513._foo._tcp.local. TXT txtvers=1
Jun 29 18:25:38 JFK : 4499 -TXT en0 74 513._foo._tcp.local. TXT txtvers=1
Jun 29 18:25:38 JFK : 4499 -TXT en0 57 513._foo._tcp.local. TXT txtvers=1
Jun 29 18:25:38 JFK : 4499 -TXT en0 54 513._foo._tcp.local. TXT txtvers=1
Jun 29 18:25:38 JFK : * 3511 PTR en0 19 _services._dns- sd._udp.local. PTR _foo._tcp.local.
Jun 29 18:25:38 JFK : 149: DNSServiceBrowse _foo._tcp.local.


Assuming the first numeric value after the colon is the timeout, it seems to have added another record and bumped up the timeout for the old ones. Am I fundamentally misunderstanding how this is supposed to work? How do I just update the TXT record so that browsers see only the new contents?
_______________________________________________
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


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.