How to configure windows server 2016 with DNS sub-domains to an IP address in the container

我的梦境 提交于 2019-12-25 03:28:20

问题


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?

来源:https://stackoverflow.com/questions/55661511/how-to-configure-windows-server-2016-with-dns-sub-domains-to-an-ip-address-in-th

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!