And, I'll once again advise everyone against doing so. I did it in past and eventually gave up. Why? You can try to block it, but you'll never succeed. Microsoft has gazillion domains which are used for telemetry, as well, as gazillion IP addresses which might not only be used for telemetry, but for other websites and services too. Block one IP, you might unknowingly blocked something else and then you'll spend hours of figuring out why something isn't working.
Windows is made to have constant connection to Microsoft's servers and no app can change that. When I blocked telemetry, I noticed Windows taking longer time to do some simple jobs like opening apps, searching etc. And the reason for that is really simple; when you block x domain, Windows tries over the y one, if that doesn't succeed it goes to z one and so on. Sometimes Windows might hang entirely if it doesn't find a way to communicate with Microsoft's servers, happened to me multiple times. This was the last straw for me.
Just install Windows 10/11 Enterprise, Education or LTSC version as they allow you to completely disable telemetry. These are made for businesses, schools and other institutions where they need a total control what Windows does and what not. You can buy the key from various sites, or you can use some other, open source, ways of activation for free.