On Thu, 26 Apr 2007, Norman wrote:
>> I don't know exactly what you mean by a "switch". As far as I know,
>> there's no standard or nonstandard way to figure out what the OS uses
>> other than DNS to do hostname resolution, and no way to ask the OS to
>> attempt alternative methods of hostname resolution without also doing
>> DNS queries.
>>
>> If what you're asking for is simply the ability to parse /etc/hosts,
>> that would be possible, but wouldn't be useful on systems with have
>> other ways of configuring static DNS data, and I'm pretty sure Windows
>> systems don't have /etc/hosts files.
>
> Yes parsing the file whould be enough here. For sure there are other
> places for other OS'es. So maybe we on our own to write some wrapper to
> do the stuff.
I haven't had much time to work on dnsjava recently, so if you want
something soon, you'd probably want to write it yourself. I'd be happy to
accept patches, of course.
Brian
|