-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdns.js
31 lines (25 loc) · 853 Bytes
/
dns.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var dns = require('dns');
//dns.resolveSrv('_xmpp-client._tcp.gmail.com', function(err, recs) {
//dns.resolveSrv('_xmpp-client._tcp.jabber.org', function(err, recs) {
dns.resolve('_xmpp-client._tcp.jabber.org', 'SRV', function(err, recs) {
//dns.resolve('_xmpp-client._tcp.localhost', 'SRV', function(err, recs) {
console.log(err);
console.log(recs);
})
dns.resolve('hermes2.jabber.org', 'A', function(err, recs) {
console.log(err);
console.log(recs);
})
dns.resolve('_services._dns-sd._udp.local.', 'SRV', function(err, recs) {
//dns.resolve('_xmpp-client._tcp.localhost', 'SRV', function(err, recs) {
console.log(err);
console.log(recs);
})
dns.resolve('fs1.localdomain', 'A', function(err, recs) {
console.log(err);
console.log(recs);
})
dns.resolve('fs1', 'A', function(err, recs) {
console.log(err);
console.log(recs);
})