Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [getaddrinfo]

The tag has no usage guidance.

1
vote
1answer
489 views

Linux getaddrinfo not working with .local domains

I'm connected by PPTP VPN to another network, mainly a windows network. Running Ubuntu 16.04.1, freshly installed. Most of the things I would like to connect to are on a .local domain. I find ...
0
votes
1answer
191 views

DNS: getaddrinfo() returning different answers depending on trailing dot

Probably a noob question but please explain me what changes in name resolution if I add the trailing dot to a domain name? (hosts file is empty, shouldn't be a problem) >>> print socket....
0
votes
3answers
7k views

nginx and php | can't resolve hostname and make connection with FQDN

I don't know what can cause this problem, nginx configs or php or anything else but : I can not make connection when host value for these php functions listed below is set to FQDN like http://www....
1
vote
1answer
1k views

getaddrinfo(3) failed

I'm trying to connect to a webservice using a PHP wrapper (which is using curl under the covers). On my local linux machine running PHP 5.3 it works perfectly. However, when I move to a remote server ...
4
votes
2answers
23k views

How do I fix “getaddrinfo: localhost Name or service not found” for telnet server?

I need to enable telnet (no i can't use ssh, and I don't want to discuss why I have to use telnet either), I have 127.0.0.1 localhost.localdomain localhost in /etc/hosts. I have installed telnet-...
18
votes
2answers
12k views

Setting IPv4 as preferred protocol over IPv6

I'm using both IPv6 and IPv4 in a LAN network containing Slackware 13.0 boxes. How can I set IPv4 as preferred protocol on the workstations in this network? I want to use IPv6 either explicitly or ...
10
votes
6answers
62k views

Temporary failure in name resolution : Host name lookup failure

I've got a script in PHP that's been running fine for months. It recently stopped working. This script connects to gmail to send out an email to my customers. Recently, I started getting this error ...