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: Persistant A/CNAME records



Hey David,

The posix responder has the ability to read a file containing service
registrations.  This can make the registrations persistant across
boots and restarts of the responder, and independant of any
server program.

There appears no way to get equivalent capability for
advertisement of A and CNAME records.   You may
currently call DNSServiceRegisterRecord with kDNSServiceType_A
to make a host advertisement, but this vanishes as soon as your
process that makes the call goes away.

Is this a correct understanding?

Yep, that's correct. The text file is only used for advertising services, not for advertising individual records. An address record is automatically advertised based on the machine's hostname and IP addresses.




It it is so, I may wish to add a capability to the daemon
that would support persistant host registrations, with a
way of kicking the daemon to get it to look for changes
in the file.

Sure, no problem, just send us the diffs. Personally, I'm not a big fan of the text file and much prefer having a running process call DNSServiceRegister. This ensures that the running service and the service advertisement stay in sync and share the same fate. When the running service crashes or shuts down, you know that the service advertisement will also get canceled.


Best Regards,

-Marc

_______________________________________________
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: 
 >Persistant A/CNAME records (From: David Brower <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.