I keep getting these kind of errors whenever I need to connect to some external host.
This is just one of the hosts cannot resolve. Others are google apis, ontraport api.
I have to manually map the IP to host in devkinsta_fpm /etc/hosts file.
Anyway to resolve this so I don’t have to map it all the time because whenever the Docker is getting update that /etc/hosts file is overwritten to the default and I need to enter things again?
Hey @martinjankov welcome to Kinsta Community!
This has happened to me once, restarting the fpm container fixed the issue, in my case for some reason Docker wasn’t able to resolve any domain.
Have you tried that already?
I’m having this same issue for all external curl requests.
Here’s the output for my resolv.conf file:
# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.
nameserver 127.0.0.11
options ndots:0
# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [127.0.0.1]
# Overrides: [nameservers]
# Option ndots from: internal