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

**URL:** https://community.kinsta.com/t/curl-cant-resolve-host-img-youtube-com/1895
**Category:** Bug Reports
**Created:** [November 22, 2022, 10:34pm UTC](https://community.kinsta.com/t/curl-cant-resolve-host-img-youtube-com/1895 "2022-11-22T22:34:47Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![andergmartins](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andergmartins/32/1656_2.png) [@andergmartins](https://community.kinsta.com/u/andergmartins)
#### Post date: [November 23, 2022, 2:42pm UTC](https://community.kinsta.com/t/curl-cant-resolve-host-img-youtube-com/1895/5 "2022-11-23T14:42:41Z")

</div>

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:

```bash
dns_server list

```

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

```bash
["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:

```bash
dns_server update -d img.youtube.com

```

It returned:

```json
{"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:

```bash
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

---

_[View the full topic](https://community.kinsta.com/t/curl-cant-resolve-host-img-youtube-com/1895)._
