简体   繁体   English

将域名连接到 ip:port

[英]connecting a domain name to a ip:port

so currently I have a registered domain name I also have a docker imgage running but to connect it i have to connect through port 81 instead of 80 (thanks ISP)所以目前我有一个注册域名我也有一个 docker 正在运行但要连接它我必须通过端口 81 而不是 80 连接(感谢 ISP)

so in order to connect I have to go through http://xxxx:81 is there a way to make it so www.example.com can connect to xxxx:81 with port 81所以为了连接我必须通过http://xxxx:81连接到 go 有没有办法让它所以www.example.com可以连接到 xxxx8:

I tried looking around but couldn't seem to find anything我试着环顾四周,但似乎找不到任何东西

No, there is no such was as this is not how DNS works.不,没有这样的,因为这不是 DNS 的工作方式。 DNS will only resolve to your IP address xxxx , not its port. DNS 只会解析到您的 IP 地址xxxx ,而不是它的端口。 So you have to use:所以你必须使用:

http://www.example.com:81

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM