Re: Resolving ipv6 address to rendezvous name
Re: Resolving ipv6 address to rendezvous name
- Subject: Re: Resolving ipv6 address to rendezvous name
- From: Marc Krochmal <email@hidden>
- Date: Mon, 3 Jan 2005 11:50:04 -0800
On Jan 3, 2005, at 10:49 AM, Joshua Graessley wrote:
The usual API for resolving an address to a host name should work. I
think getnameinfo is what you're looking for. If the IPv6 address is
link-local, mDNS will be used to perform a reverse lookup. If the IPv6
address is not link-local, normal unicast DNS will be used.
-josh
On Jan 3, 2005, at 2:15 AM, Fazekas, Miklós wrote:
I have an IPv6 address, and i'd like to get the randezvous name of
the machine. I've tried the CFHost sample code, but it seems it
cannot do this.
(I've got IPv6 address from AFPVolMountInfo, and i'd like to get the
name of the server)
Actually, getnameinfo currently doesn't work with IPv6 link-local
addresses, and it's going to be a while before it's fixed.
<rdar://problem/3621096>.
You'll need to use DNSServiceQueryRecord in /usr/include/dns_sd.h and
then query for a PTR record named something like...
2.3.1.C.2.F.E.F.F.F.5.6.0.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.E.F.ip6.arpa
.
See DNSServiceMetaQuery for an example of DNSServiceQueryRecord.
<http://developer.apple.com/samplecode/DNSServiceMetaQuery/
DNSServiceMetaQuery.html>
Best Regards,
-Marc
_______________________________________________
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