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
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.
int $type
DNS_SRV