0.3.0 • Published 11 years ago

dns-srv v0.3.0

Weekly downloads
1,461
License
-
Repository
github
Last release
11 years ago

dns-srv

A module to query SRV records from DNS servers

Usage: To query the _xmpp-client._tcp SRV record of gmail.com.

var srv = require('dns-srv');
var net = require('net');

var sock = new net.Stream();
srv.connect(sock // This socket will become connected if everything goes well
         , ['_xmpp-client._tcp'] // The SRV record to query
         , "gmail.com" // The domain whose DNS SRV we are interested in
         , 5222 // Default fallback port to connect to in case SRV lookup failed
);

sock.on('error', function() { console.error('meh...'); })
    .on('connect', function() { console.log('yeah baby!!'); });
0.3.0

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago

0.0.6

13 years ago

0.0.5

13 years ago

0.0.4

13 years ago

0.0.3

13 years ago

0.0.1

13 years ago