Answers:
这对我有用
nslookup -q=SRV _ldap._tcp.mydomain.com
所以nslookup -q = SRV _sip._tls.tan-ha.com
Server: myhost.local
Address: 1.2.3.4 (my ip)
Non-authoritative answer:
_sip._tls.tan-ha.com SRV service location:
priority = 100
weight = 1
port = 443
svr hostname = sipdir.myotherdomainorso.com
sipdir.myotherdomainorso.com internet address = 110.12.23.34
sipdir.myotherdomainorso.com AAAA IPv6 address = 1111:111:ffff:3004::35
看来nslookup手册页不再正确。
nslookup没有强大的非交互模式:
“非交互式模式用于仅打印名称和 请求的主机或域信息”
而是使用host(1):
主机-t SRV example.com