I am using Linux Ubuntu 64-bit and compiling C code to be run in a Linux Armbian 32-bit system. I am using: When I test the code on Ubuntu I use gc ...
I am using Linux Ubuntu 64-bit and compiling C code to be run in a Linux Armbian 32-bit system. I am using: When I test the code on Ubuntu I use gc ...
I'm writing a linux userspace application that opens a stateless socket (ICMP/UDP) to an internet host The user specifies a hostname FQDN (www.google. ...
I am using a compute instance VM of Google Cloud, have installed Debian 10 and PHP 7.3. Then tried to run this: Surprisingly it returns an empty s ...
The problem I used inet:gethostbyname(Hoststr) in a docker environment with a couple containers for over a year without problems. Due to non recovera ...
Above code always returning with my_h_errno set to TRY_AGAIN for non-resolvable hostnames on Ubuntu 19.04 and 20.04. On previous versions of the OS ...
How can I get the IP-address from a domain name with the top level domain name? In this example get the IP of google.com. And if possible in IPv6 in t ...
I am building a C program and I’m wrestling with a weird – and inconsistent – thread and socket error with gethostbyname() that I’ve never seen before ...
I have an node.js server application that needs to know the requested ip address in order to do some operation. The problem is that, when the user use ...
I am retrieving values from a table field and appending a string to it to get a list of host names. I would then like to loop through all the host nam ...
When I ping my domain name from my computer, I get a different IP than if I run a script on my host that does Why is this? ...
gethostbyname works when doing gethostbyname("www.google.com") but when doing it like: The connection is timing out. I am making sure my string is ...
I need to write a program that retrieves the IP addresses of a list of domain names. The simple example can be shown here: After I try to close the ...
From gethostbyname(3) - Linux manual I've written programs that make multiple calls to gethostbyname and haven't had anything break because of over ...
I have a given application which uses Perl's gethostbyname to check if a hostname exists in DNS. I don't want to patch the source code of that applica ...
I have found this problem in Python but I was also able to reproduce it with a basic C program. I am in CentOS 6 (tested also on 7), I have not teste ...
socket.gethostbyname("vidzi.tv") giving '104.20.87.139' ping vidzi.tv gives '104.20.86.139' socket.gethostbyname("www.vidzi.tv") giving '104.20.87.1 ...
I'm writing a program that would check if a port on given url or ip is open or not. In order to obtain the ip adress of given url, I'm using gethostby ...
I need run my client 2 times. The first time I need run using local network PC and the next time I need to use as a local host. I need to run server i ...
I am wanting to resolve a host name to an ip address which is all fine using Socket with the following: This works fine until it hits a host name t ...
I am making an IP grab script for servers and I had some issues with my code. I want to grab just the ip addresses of servers using dns_get_record wit ...