domain-name-system – 活动目录:与DNS SRV记录关联的整数值的语义是什么?

从以下示例开始(在 samba wiki中引用):
$host -t SRV _ldap._tcp.samdom.example.com.
_ldap._tcp.samdom.example.com has SRV record 0 100 389 dc1.samdom.example.com.

响应中的整数是什么意思?

389可能涉及TCP端口,但是0?和100?

解决方法

我们来看看RFC 2782,A DNS RR for specifying the location of services (DNS SRV)

The format of the SRV RR

Here is the format of the SRV RR,whose DNS type code is 33:

_Service._Proto.Name TTL Class SRV Priority Weight Port Target

所以虽然你的例子没有列出TTL,但我们知道它的类是IN,它的类型是SRV ……

_ldap._tcp.samdom.example.com 0 100 389 dc1.samdom.example.com.

>名称_ldap._tcp.samdom.example.com
>优先级0
>重量100
> 389号港口
>目标dc1.samdom.example.com.

相关文章

vue阻止冒泡事件 阻止点击事件的执行 <div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些