SRV record lookup with PHP

前端 未结 2 1757
面向向阳花
面向向阳花 2021-01-21 04:48

If you type

nslookup -type=SRV _xmpp-server._tcp.gmail.com

(or use the dig command in OSX) you get some SRV records relating to google chat

2条回答
  •  爱一瞬间的悲伤
    2021-01-21 05:37

    There is dns_get_record(). According to the docs it can take an int $type argument, which refers to a set of constants, one of them being DNS_SRV.

提交回复
热议问题