DNSServiceUpdateRecord is failing
DNSServiceUpdateRecord is failing
- Subject: DNSServiceUpdateRecord is failing
- From: Jens Alfke <email@hidden>
- Date: Tue, 28 Apr 2009 09:42:23 -0700
I've registered a service using DNSRegister. After the registration
succeeds, I call DNSServiceUpdateRecord to update its TXT record. But
this call always fails with kDNSServiceErr_BadReference.
- I know the service, and its initial TXT record, were registered (I
can see them show up in apps like BonjourBrowser.)
- I've checked that the service-ref I'm passing into UpdateRecord is
correct.
- I'm passing NULL as the RecordRef, which the docs say means the
primary TXT record.
- I know the TXT record is correctly formatted.
Any idea what the problem might be? My only guess is that it has
something to do with using a shared connection — I'm calling
DNSServiceCreateConnection once on launch and then using the
kDNSServiceFlagsShareConnection flag when I create services. (I know
this code works, I'm already using it for browsing and resolving.)
Does DNSServiceUpdateRecord not work with shared connections?
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden