I just meant do the resolve manually in code. Write a method like:

URI myLookupHost( URI in )

Then in that method do something like:

public URI myLookupHost( URI u )
{
  InetAddress addr = myResolve( u.getHost() );
  return new URI( u.getScheme(), u.getUserInfo(), addr.getHostAddress(), ... );
}

On Mon, Oct 10, 2011 at 2:13 PM, Craig Gambino <[email protected]> wrote:
> If I were to write my own DNS resolver, what is the best way to utilize it?
> I see that there is a chain of injection that I can do if I override the
> DefaultClientConnectionOperator, but I wasn't sure if there was a cleaner /
> easier way.
>
> On Sat, Oct 8, 2011 at 10:20 AM, Stephen J. Butler <[email protected]
>> wrote:
>
>> On Sat, Oct 8, 2011 at 11:09 AM, Craig Gambino <[email protected]>
>> wrote:
>> > I was wondering if it was possible to disable / stop NetBios name
>> resolution
>> > during a request on a per-client basis (e.g. cannot alter the JVM or the
>> > machine or anything that would effect another process).  Would anyone
>> have
>> > any ideas on how to go about this?
>>
>> Can you change JVM startup parameters? Information in this bug...
>>
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5092063
>>
>> ... suggests you can set the resolver explicitly with:
>>
>> -Dsun.net.spi.nameservice.provider.1=dns,sun
>>
>> Also, you could download a DNS resolver class implementation and do
>> the resolution yourself.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to