This question already has answers here: Closed 11 years ago. Possible Duplicate: Can I lookup the IP address of a hostname from javascript?
I\'ve programmed networked applications, but primarily in Python. I\'m writing a C++ application and I\'m a little fuzzy on exactly what the syntax开发者_开发知识库 should be to look up a domain name
The following code produces an exception in node.js under windows: var Socket = require(\"net\").Socket;
Anyone run into this before: After updating DNS records..I do a dig for \'test.somedomain.com\' I get 167.69.143.234, however when I do a socket.gethostbyname(\'test.somedomain.com\') I get 167.69.6.
I am using this snippet of code I found in http://www.kutukupret.com/2009/09/28/gethostbyname-vs-getaddrinfo/ to perform dns lookups
I\'m trying to portably (Windows & Linux) find all of the IP addresses of the local machine. The method I am using is to first call gethostname(), and then pass the result of that to gethostbyname
My proxy server is spending a lot of time resolving the domain names,is there a way to make gethostb开发者_C百科yname cache the result?Use nscd, the name serivce caching daemon
I am writing some code that uses the function gethostbyname(). This function requires that I pass it a string of the host I am trying to find the host for. Right now I have my string declared in an ar
The device does have network connectivity (WiFi and 3G). C开发者_StackOverflow中文版alling gethostbyname() returns NULL with errno 111 (ECONNREFUSED).
Hey guys, I\'m new a开发者_运维技巧t this stuff, but I\'m trying to use gethostname() to work using xcode and the ipad. I\'ve tried a couple of things, but they all seem to freeze up.