How to configure windows server 2016 with DNS sub-

2019-08-16 18:12发布

问题:

I have a windows server 2016 on Azure which I will use as host for windows containers. I want to publish the containers hosted on the Server using a subdomain.

Azure gave me a sub-domain such as: myserver.australiaeast.cloudapp.azure.com. Once I've created my windows container I have the internal IP address for my container as 172.26.140.245. What I am trying to achieve is to create a subdomain called "container1" so that if we get any request to: container1.myserver.australiaeast.cloudapp.azure.com the request will be forwarded to/from my container via the local IP address.

I've tried this article about DNS setup but it didn't work, maybe because I did not configure this properly, or maybe because it is not possible using DNS.

Can I achieve what I am looking for using DNS on the windows server? If not how can I achieve this?