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: Registrating a service with non-local IP address



Hey Pavel,

We have two lans (192.168.x.x and 10.x.x.x) separated by an Windows NT
router machine configured so that hosts on both LANs can talk to each
other using raw IP addresses.

I am trying to devise a way to register a service on 192.168.x.x LAN
with the IP address on 10.x.x.x LAN. In other words,  programs running
on hosts on LAN1 should be pointed to an IP address on LAN2 when they
resolve a given service.

DNSServiceRegister clearly is not designed for this. Can I use other
means? DNSRegisterRecord maybe? If so, is there an example of how to
define SRV RR by hand?

One way comes to mind: 1) use DNSServiceRegister to register the
service locally. 2) immediatly update its corresponding A record with
the IP address from the other LAN (can this be done?)...

From what I understand, a more general way of doing this is coming in
future. But is there a hacky way of doing this now with what we have?

I am using the Windows build of Rendezvous.

The way you do this is by using both DNSServiceRegister and DNSServiceRegisterRecord. First you call DNSServiceRegisterRecord to register an address record, for example "pavel.local.", which maps to the IP address 10.x.x.x, and then use DNSServiceRegster like normal, but pass in "pavel.local." for the "host" parameter. If you checkout the latest from Darwin CVS, the "dns-sd.c" command-line tool in the "Clients" folder has an example of this. It's the "-P" command-line option.


Best Regards,

-Marc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Rendezvous-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/rendezvous-dev/email@hidden

This email sent to email@hidden
References: 
 >Registrating a service with non-local IP address (From: Pavel Repin <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.