除SRV记录外,我还需要其他任何东西才能使其正常工作吗?

时间:2015-06-28 10:16:46

标签: dns srv

我正在尝试设置SRV记录,以便让用户连接到游戏服务器。

服务器使用端口27016 UDP和TCP(实际上TCP仅由steam使用)所以我创建了两个SRV记录:

_ARKSRV._tcp.join.domain.tld.   SRV domain.tld.
_ARKSRV._udp.join.domain.tld.   SRV domain.tld.

但是当我尝试ping它或使用nslookup时,我得到:

~$ ping join.domain.tld
ping: cannot resolve join.domain.tld: Unknown host

~$ nslookup -q=SRV _ARKSRV._tcp.join.domain.tld
Server:     8.8.8.8
Address:    8.8.8.8#53

** server can't find _ARKSRV._tcp.domain.tld: NXDOMAIN

我想知道我是否需要创建一个A记录来使其工作或者是什么。

1 个答案:

答案 0 :(得分:0)

您的区域记录:

_ARKSRV._tcp.join.domain.tld.   SRV domain.tld.
_ARKSRV._udp.join.domain.tld.   SRV domain.tld.

与您的查询不匹配:

~$ nslookup -q=SRV _ARKSRV._tcp.domain.tld

您的SRV记录似乎也有不正确的语法。使用SRV记录的部分原因是您可以指定端口。参考link