Curl can't resolve host: img.youtube.com

Oh, I found it when listing the devkinsta_fpm container’s processes.

It is shaman, and is running as the service dns_server.

I just tried doing the following:

dns_server list

And it displayed only the local domains I have on DevKinsta:

["php-74-dev.local","php-81-dev.local","php-80-dev.local"]

So I tried updating the register for the specific domain I need, running the command:

dns_server update -d img.youtube.com

It returned:

{"domain":"img.youtube.com.","records":[{"ttl":60,"class":"IN","type":"A","address":""}]}

And that worked! The local DNS server is able to find that domain.

Now it recognizes the domain and I can know run:

curl -L https://img.youtube.com/vi/1YyO12WGju0/0.jpg

And it returns the correct answer when doing the request throw PHP as well.

This is probably a temporary solution, but works for me for now.

I will comment on that other ticket, since I suppose that might help on that too.

Thanks

1 Like