• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSHost issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: NSHost issue
  • Next by Date: Re: Searching Files on MacOS X
  • Previous by thread: Re: NSHost issue
  • Next by thread: Re: NSHost issue
  • Index(es):
    • Date
    • Thread