I have setup a VM on Google compute engine with a static IP address (say IPv4). Currently I am running two servers on the same VM, one at port 8000 and the other at 5000. I have a domain purchased on GoDaddy.com (say example.com) and I have transferred the name servers to the Google cloud ones. Now I want the two server to map as follows:
- api.example.com -> IPv4:8000
- example.com -> IPv4:5000
I am not sure how to add the record sets (in DNS section in Google Cloud) in order to obtain this behavior? How can this be done?