I have a nodejs application running on EC2 instance. The nodejs application is running on port 7000, and I'm using nginx to listen to port 80 and forward any request to that port (so if someone type: it's like he types: This part is good, but now I want to use a subdomain to get to that nodejs application.

So when people type in the address bar: fofo.example.com they will be my nodejs application.

I create an A record for that subdomain to point to my IP address, but for some reason when I type my subdomain in the address bar it changes and revealed the IP address I wanted to hide...

What I did wrong or what do I need to change in order to show only my subdomain and don't reveal the IP address.