<p>In either a Windows or Mac OS X terminal if you type...</p>

<pre><code>nslookup -type=SRV _xmpp-server._tcp.gmail.com
</code></pre>

<p>... (for example) you will receive a bunch of SRV records relating to different google chat servers..</p>

<p>Does anyone have any experience in this area and possibly know how to service this information (hostname, port, weight, priority) using the iPhone SDK? I have experimented with the Bonjour classes, but as yet have had no luck..</p>

<p>Thanks!</p>

Hmm, looks like I can't run
```
system()
```
on the Simulator or the device. I can run
```
NSTask
```
on the Simulator, but not the iPhone, and
```
NSTask
```
is not part of the
```
Foundation
```
framework.
The
ISC BIND
package has a BSD license. If feasible, perhaps relevant parts of the
```
dig
```
code could be wrapped into the project directly.