Top "Gethostbyname" questions

gethostbyname in C

I don't know how to write applications in C, but I need a tiny program that does: lh = gethostbyname("localhost"); …

c gethostbyname
Python attribute error: type object '_socketobject' has no attribute 'gethostbyname'

I am trying to do this in my program: dest = socket.gethostbyname(host) I have included the line: from socket …

python attributeerror gethostbyname
Compile a static binary which code there a function gethostbyname

How to resolve compile a static binary which code include a function gethostbyname and if compiled without warning like this: …

c++ c linux gcc gethostbyname
What's wrong with gethostbyname?

I am using this snippet of code I found in http://www.kutukupret.com/2009/09/28/gethostbyname-vs-getaddrinfo/ to perform dns lookups #include &…

c linux gethostbyname
Alternative to gethostbyname

I can't use gethostbyname to grab a host's IP address, it is a deprecated function that only works 10% of the …

c++ windows gethostbyname
Difference between GetHostEntry and GetHostByName?

On MSDN it mentions GetHostByName is obsolete. The replacement is GetHostEntry. What are their difference?

c# dns gethostbyname
How to flush cache for socket.gethostbyname response?

Anyone run into this before: After updating DNS records..I do a dig for 'test.somedomain.com' I get 167.69.143.234, however …

python sockets caching dns gethostbyname
IP address order in gethostbyname function

Since I got no answer on my previous question, I will rephrase it. What order of IP addresses (in case …

c++ ip winsock windows-server gethostbyname
gethostbyname() function returns empty buffer

I am new to internet programming, and I am trying to use the gethostbyname() function. When I input a string …

c sockets gethostbyname