[Project_owners] DNS Requests?

Eric H. Jung eric.jung at yahoo.com
Mon Sep 29 18:26:03 PDT 2008




> Arturo 'Buanzo' Busleiman wrote:
> > var DNSService = 
> CC['@mozilla.org/network/dns-service;1'].getService(CI.nsIDNSService);
> >     var DNSRecord = DNSService.resolve(DNSService.myHostName, true);
> > 
> > Let's see how useful this is for what I want :) - Thanks!
> 
> Sadly, It can only resolve hostnames to IP addresses. I need to be able to do 
> queries on other
> record types (TXT and/or SRV, specifically)...

Buanzo, you could always open a socket connection to the DNS server and craft your own TXT, SRV, etc. packets.

Eric


      


More information about the Project_owners mailing list