Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 344281

Summary: net-proxy/tsocks ebuild should support ./configure DNS options
Product: Gentoo Linux Reporter: Jesse Adelman <jesse>
Component: New packagesAssignee: Gentoo Network Proxy Developers (OBSOLETE) <net-proxy+disabled>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jesse Adelman 2010-11-05 16:21:41 UTC
Howdy. I'm going to tweak the existing e-builds to handle this, however I'll need to add some USE flags to do it. The existing USE flag "tordns" doesn't implement this feature.

From "man 8 tsocks":

"   DNS ISSUES
       tsocks will normally not be able to send  DNS  queries  through  a  SOCKS
       server since SOCKS V4 works on TCP and DNS normally uses UDP. Version 1.5
       and up do however provide a method to force DNS lookups to use TCP, which
       then  makes them proxyable. This option can only enabled at compile time,
       please consult the INSTALL file for more information."

From INSTALL:

"        --enable-socksdns       This option causes tsocks to intercept
                                DNS lookups and attempt to force them
                                to use TCP instead of UDP and thus
                                be proxied through the socks server. This
                                is not a very elegant thing to do and
                                should be avoided where possible.

        --disable-hostnames     This disables DNS lookups on names
                                provided as socks servers in the config
                                file. This option is necessary
                                if socks dns is enabled since tsocks
                                can't send a socks dns request to resolve
                                the location of the socks server."

Yeah, the upstream says that it isn't very elegant. When has that ever stopped us before? ;)
Comment 1 Jesse Adelman 2010-12-08 03:10:11 UTC
Ah, I just looked through the "tordns" patch, and indeed this is included there. Large patch, sorry I hadn't checked earlier. :/