Re: [Dproxy-devel] 0.5 vs nexgen?
Brought to you by:
mattpratt
From: Matthew P. <mat...@ya...> - 2002-08-29 08:27:23
|
--- Mark Horn <mar...@ho...> wrote: > Hello, > > I've been looking for something like dproxy for some > time now and am > glad that I found it. I have a question re: > dproxy's behavior. > > The behavior that is exhibited in 0.5 is what I was > looking for. > Specifically, I wanted a DNS proxy that could listen > for requests on my > private network, and then generate queries to one of > several different > networks each with different DNS servers. If I'm understanding what you are saying, then the nexgen version should be able to do this as well. Just list the multiple servers in the config file. The OS should take care of routing them over the correct network. > The 0.5 behavior did not require you to > pre-configure a DNS server in > dproxy's config, but nexgen does. This behavior > does not really do > what I'm looking for, and I'm much more interested > in the 0.5 behavior, > which indirectly uses /etc/resolve.conf. Could you please explain a little more? > Is this a strategic design change or an experiment? > If this is strategic, > will the 0.5 behavior be available in future > releases? It is a strategic design. Basically since gethostbyname() is blocking we fork a new process for each query. Unfortunately this leads to syncronisation issues when writing back to the cache file, and is quite a heavy weight solution. I deemed it easier and more efficient to write my own resolvers than work out these issues. Having thought about this some more, it may not be so hard to fix these issues, and if nexgen truly doesn't suite your needs I could have a go at implementing these. One thing that the nexgen version does that the 0.5 version doesn't is parallel queries. It will simultaneously query all the DNS servers listed in its config file and reply with which ever anwser happens to come back first. Matt __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com |