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: Using apple resolver libraries



(resent with CC to list)

Marc and others,

Thanks for the pointers.

What I'm trying to do is implement Rendezvous on a linux box. I've grabbed
release 62 of mDNSResponder and have a half-decent understanding of how the
embedded DNS code is interacted with by a client application.

Unfortunately, I'd rather have it running as a daemon. This creates three
additional requirements:

* I need a common mDNSd daemon that brokers client requests.
* I need some mechanism for redirecting .local DNS lookups through the daemon.
* I need to register devices name and services with the daemon.

I've checked out the mDNSPosix responder daemon (mdnsd) and can't for the
life of me figure out how a client is supposed to talk to it. As it
stands, I can get it to 'respond' to requests, but an empty DNS-SD server
isn't overly useful.

As for redirection, linux and bsd use nsswitch rather than lookupd. Thus
the need for either a /etc/resolver style mechanism within libnss_dns or a
new libnss_mdns that preempts libnss_dns, but only for a limited range of
calls (and returns 'not found otherwise).

Once the daemon API exists, registration is trivial.


Any pointers or documentation would be very useful. While the source code
of mDNSResponder is reasonably detailed, there's a dearth of API level code
or code describing how the various modules fit together.

I do notice that dns-sd.h contains an API. If I use this API and link my
client application/s with libmdns, will this do what I want with respect to
talking to mdnsd?

Thanks for your time.

--
Andrew White
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Using apple resolver libraries (From: Andrew White <email@hidden>)
 >Re: Using apple resolver libraries (From: Marc Majka <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.