Re: NSHost issue
Re: NSHost issue
- Subject: Re: NSHost issue
- From: Christian Brunschen <email@hidden>
- Date: Wed, 27 Aug 2003 15:08:19 +0200 (MEST)
On Wed, 27 Aug 2003, Wilfried de Kerchove de Denterghem wrote:
>
Hello,
>
>
I have an issue when performing a DNS lookup using NSHost for
>
localhost. The following code:
>
>
NSHost* host = [NSHost hostWithName:@"localhost"];
>
if (host) {
>
NSLog(@"IPs = %@", [[host addresses] description]);
>
} else {
>
NSLog(@"Failed");
>
}
>
>
>
returns: IPs = ("::1", "127.0.0.1")
>
>
"::1" doesn't look like a valid IP address to me. Has anyone an
>
explanation or should I file a bug?
Think 'IPv6' :) In other words, you are getting back both the IPv6 and
IPv4 addresses for localhost.
>
Thank you,
Best wishes,
>
Wilfried de Kerchove de Denterghem
// Christian Brunschen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >NSHost issue (From: Wilfried de Kerchove de Denterghem <email@hidden>) |