How to create domain -> server IP:port redirect via DNS?

I have proxied DNS and Full (strict) encryption mode here on Cloudflare for my domain a108.net and rss.a108.net.
On the same server (same IP) I made via docker a private script to generate the RSS links from Telegram channels and groups.
Now I need to configure the 3d level domain (like rss.a108.net) to be redirected to the particular port 9504. Like this rss.a108.net:9504 - to create the RSS link with this script.
What should I do on Cloudflare to point out this rss.a108.net to 9504 on my server?

Use origin rules to point at port 9504 on your origin server…
https://dash.cloudflare.com/?to=/:account/:zone/rules/origin-rules

I need the rule example screenshot to understand all this dosumentation.
I suppose it is something like this, but I am not sure:

Change URI full contains https://....
to hostname equals rss.a108.net

So, now should I add this domain rss.a108.net to my server or no need?

Do you mean add to your DNS? Yes, you must add an A, AAAA or CNAME record for rss.a108.net that points to your server. It must be proxied for the rule to work.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.