# בעיית רזולוציית דומיין משפיעה על הטמעות נושאים

**URL:** <https://meta.discourse.org/t/domain-resolution-issue-affecting-topic-embeds/304868>\
**Category:** Bug\
**Created:** [22 באפריל,‏ 2024,‏ 7:25am UTC](https://meta.discourse.org/t/domain-resolution-issue-affecting-topic-embeds/304868 "2024-04-22T07:25:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [22 באפריל,‏ 2024,‏ 7:25am UTC](https://meta.discourse.org/t/domain-resolution-issue-affecting-topic-embeds/304868/1 "2024-04-22T07:25:01Z")

</div>

There is possibly a domain resolution issue affecting topic embeds.

1. The topic embed system relies on FinalDestination to resolve topic embed urls ([see here](https://github.com/discourse/discourse/blob/main/app/models/topic_embed.rb#L132)).

2. FinalDestination resolves the hostname of a url to an IP via SSRFDetector ([see here](https://github.com/discourse/discourse/blob/main/lib/final_destination.rb#L259))

3. FinalDestination then sends the uri to Excon for the actual request ([see here](https://github.com/discourse/discourse/blob/main/lib/final_destination.rb#L268)).

This means that some topic embed urls, for example

```plaintext
"https://opensource.org/blog/osi-response-to-ntia"

```

end up being sent to Excon for a GET request like so:

```plaintext
"https://[2604:a880:800:a1::2f0:a001]/blog/osi-response-to-ntia"

```

This request will time out. An `Excon.get` of the original URL will not.

---

_[View the full topic](https://meta.discourse.org/t/domain-resolution-issue-affecting-topic-embeds/304868)._
