• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
DNSServiceUpdateRecord is failing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: DNSServiceUpdateRecord is failing
      • From: Quinn <email@hidden>
  • Prev by Date: Re: DNSService: Can I compute a service's fullname myself?
  • Next by Date: Re: DNSServiceUpdateRecord is failing
  • Previous by thread: Re: DNSService: Can I compute a service's fullname myself?
  • Next by thread: Re: DNSServiceUpdateRecord is failing
  • Index(es):
    • Date
    • Thread