$ host -t SRV _someInternalSrvRecord._tcp_someInternalSrvRecord._tcp.mysearchdomain.com has SRV record 0 0 2181 some01.fqdn.com_someInternalSrvRecord._tcp.mysearchdomain.com has SRV record 0 0 2181 some02.fqdn.com_someInternalSrvRecord._tcp.mysearchdomain.com has SRV record 0 0 2181 some03.fqdn.com
var dns = require("dns");dns.resolveSrv("_someInternalSrvRecord._tcp", function(err, data) {if (err) {console.log("ERR! %j", err);} else {console.log("RESOLVED: %j", data);}});
$ node srv.js
ERR! {"stack":"Error: ENOTFOUND, Domain name not found\n at IOWatcher.callback (dns.js:74:15)","message":"ENOTFOUND, Domain name not found","errno":4,"code":"ENOTFOUND"}
Has anyone used node to successfully perform SRV resolution? If so, is there something obvious I'm missing here?
Works for me with the current master. Below is what a query for
_jabber._tcp.google.com prints:
RESOLVED: [{"priority":20,"weight":0,"port":5269,"name":"xmpp-server4.l.google.com"},{"priority":20,"weight":0,"port":5269,"name":"xmpp-server3.l.google.com"},{"priority":20,"weight":0,"port":5269,"name":"xmpp-server1.l.google.com"},{"priority":5,"weight":0,"port":5269,"name":"xmpp-server.l.google.com"},{"priority":20,"weight":0,"port":5269,"name":"xmpp-server2.l.google.com"}]
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.