DevKinsta keep showing error cannot resolve host

Could not connect to activation server (cURL error 6: Could not resolve host: connect.advancedcustomfields.com).

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?

Regards,
Alessandro

@Alessandro I tried that, but no success.

When running this command in the fpm container, what do you get as output?

cat /etc/resolv.conf

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

Hello @Sam_Benson :waving_hand:

That looks standard.

Can you please tell me what is the Docker, DevKinsta and operating system version you use?

Also, if possible, can you please provide us with DevKinsta’s main.log as explained here?

Kind regards!