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: Getting started in Linux



At 5:06 PM -0700 7/12/04, Eric Wing wrote:
Thanks for the response. That clears a bunch up. I
didn't realize I should be pulling directly from CVS.
I grabbed my version from the link on the developer
page. It seems to be missing all the library stuff and
the "make install" target.

The tarball on the developer page typically contains the most recent "released" build. Right now, that means some variant of what went out with 10.3.


None of the new stuff has been released as an Apple product yet.

One additional question. I noticed that with the
mDNSResponderPosix, I was able to pass a file
containing services (like Services.txt) using the -f
switch. I don't actually understand how to use the
file format, but I did manage to advertise my ssh
services locally which I kind of liked. But with this
CVS version, mdnsd is installed on my system instead
which I think is almost the same thing, but I don't
seem to be able to advertise services like the other
one. What should I do if I wanted this ability back?
Do I run both of them, replace mdns with
mDNSResponderPosix, or is there something else I need
to do? (Also, is there any documentation on that file
format?)

The easiest way to do this is to compile the dns-sd tool in the Clients folder. The tool can do the following:


dns-sd -E                  (Enumerate recommended registration domains)
dns-sd -F                      (Enumerate recommended browsing domains)
dns-sd -B        <Type> <Domain>        (Browse for services instances)
dns-sd -L <Name> <Type> <Domain>           (Look up a service instance)
dns-sd -R <Name> <Type> <Domain> <Port> [<TXT>...] (Register a service)
dns-sd -Q <FQDN> <rrtype> <rrclass> (Generic query for any record type)
dns-sd -A                      (Test Adding/Updating/Deleting a record)
dns-sd -U                                  (Test updating a TXT record)
dns-sd -N                             (Test adding a large NULL record)
dns-sd -T                            (Test creating a large TXT record)
dns-sd -M      (Test creating a registration with multiple TXT records)
dns-sd -I   (Test registering and then immediately updating TXT record)

So you could create a script like the following:

#!/bin/sh
dns-sd -R "My SSH service" "_ssh._tcp" "" 22 &
dns-sd -R "My Web service" "_http._tcp" "" 80 &

etc. and run that at startup. It will talk to mdnsd to do the registrations.


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


References: 
 >Re: Getting started in Linux (From: Eric Wing <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.