Getting subdomains to go to certain ports on 1 IP

Hello everyone,

I have a namecheap domain which is now connected to cloudfare nameservers but I need it to do one thing which doesn’t require me to buy 2 domains. I have set my IPV4 as 2 A records with different names but I want the the subdomains to both go to different ports e.g. will go to will go to

Does anyone know how I can do this? Thanks.


I recommend you to have a look here:

Anyway, the nameservers are not controlled by you.

Only when you have BIZ or ENT plans, you can have the Custom nameservers · Cloudflare DNS docs

Take care!

1 Like

You will need to configure your hostname to port mapping at your origin. This is normally accomplished using a reverse proxy. The network ports article shared in the previous reply is important to read.

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