我有一个Minecraft服务器侦听端口25566,我正在尝试在我的域上设置SRV记录,这样您只需键入IP地址即可访问该游戏服务器:play.example.com.
经过多次尝试似乎我无法让它发挥作用.这就是我所做的:
>设置指向我的服务器的A记录:
Name: play.example.com Destination IP Address: 123.4.5.6
>设置如下的SRV记录:
Name: _gserver._tcp.play.example.com Priority: 0 Weight: 0 Port: 25566 Value: play.example.com
当我尝试访问play.example.com时它不会将我重定向到端口.
由于某种原因,A记录有效,但SRV没有.
知道为什么这不起作用吗?
解决方法
Minecraft使用的协议是minecraft,而不是gserver.
SRV记录应该是
>名称:_minecraft._tcp.play.gameserver.com>优先级:0>重量:0>端口:25566>价值:play.gameserver.com