Questions tagged [getaddrinfo]
7 questions
24
votes
2 answers
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 when there are only AAAA records available. For…

Georgi Hristozov
- 712
- 1
- 4
- 13
11
votes
6 answers
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 when I run the script:
The SMTP connection failed…

GeoffreyF67
- 497
- 2
- 7
- 14
4
votes
2 answers
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-server, chkconfigd it on, and enabled xinetd. SElinux…

Nick Anderson
- 679
- 2
- 5
- 11
2
votes
1 answer
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 that any application that does a getaddrinfo during…

Rich Duzenbury
- 29
- 4
1
vote
1 answer
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 (also running PHP 5.3 on Linux) the call the the…

user101289
- 297
- 1
- 3
- 12
0
votes
1 answer
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.getaddrinfo('google.com',0)[0][4][0]
216.58.212.238
>>> print…

Rápli András
- 159
- 2
- 10
0
votes
3 answers
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.domain.com or www.domain.com but problem all goes…

Timberland
- 61
- 1
- 6