tags:

views:

115

answers:

3

hi, i need to get the ip address from the given host name. For example,if "google.com" is given i need the ip address of google.com. How to achive this in iphone?

A: 

Do it like any other POSIX systems, i.e. use getaddrinfo() (See http://en.wikipedia.org/wiki/Getaddrinfo).

KennyTM
A: 

See the POSIX function getaddrinfo().

Alex Reynolds
+3  A: 

For iPhone, use CFHost.

R Samuel Klatchko
Looks good, but the link is dead.
MusiGenesis
@MusiGenesis - link updated
R Samuel Klatchko
Thanks, useful stuff.
MusiGenesis