简体   繁体   English

如何通过端口将DNS记录指向IP?

[英]How to point DNS record to IP with port?

I have a website. 我有一个网站。 example.com The website is hosted on bluehost I would like to point a subdomain pediatri.example.com to another website hosted on another server ( 95.110.189.135:8080 ) the problem is that i can't CNAME to an ip with a port. example.com网站托管在bluehost上,我想将子域pediatri.example.com指向托管在另一台服务器上的另一个网站( 95.110.189.135:8080 ),问题是我无法将CNAME 95.110.189.135:8080为带有端口的IP 。 I tried using an SRV record like that: 我尝试使用这样的SRV记录: SRV记录 I can't change the port to 80 on the other server, and i need the subdomain to point to the ip with the port and everything to work fine. 我无法将另一台服务器上的端口更改为80,并且我需要子域指向具有端口的ip,并且一切正常。 Is there a way to do that? 有没有办法做到这一点? I appreciate every answer and comment. 我感谢每一个答案和评论。 Thanks! 谢谢!

DNS only works at the IP Address level, its only concern is mapping domain names to IP Addresses, there is no way to specify a port number. DNS仅在IP地址级别工作,它唯一关心的是将域名映射到IP地址,无法指定端口号。

Srv records only work for applications that understand them and are specifically programmed to look them up and configure themselves accordingly. Srv记录仅适用于理解它们的应用程序,并且经过专门编程以查找它们并进行相应配置。

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

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