[Project_owners] DNS Requests?

Jesper Staun Hansen jesper at heroes-addon.dk
Mon Sep 29 18:34:01 PDT 2008


Eric H. Jung wrote:
>
>   
>> 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
>
>   
Remember in that case to provide the possibility to allow users to 
select their own DNS server as some places have closed DNS ports 
outgoing and only allow ex. a company dns server


More information about the Project_owners mailing list