rajan
rajan

Reputation: 21

IP Address from host name

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?

Upvotes: 2

Views: 1261

Answers (3)

R Samuel Klatchko
R Samuel Klatchko

Reputation: 76611

For iPhone, use CFHost.

Upvotes: 4

Alex Reynolds
Alex Reynolds

Reputation: 96974

See the POSIX function getaddrinfo().

Upvotes: 1

kennytm
kennytm

Reputation: 523684

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

Upvotes: 0

Related Questions