Re: resolving all dns though a binary
- From: "xask: Deepak Mishra" <xask.linus@xxxxxxxxx>
- Date: Sun, 26 Aug 2007 23:04:52 -0700
So the machine running Squid is doing DNS lookups for you when you request,
say, webpages via the proxy - and you want to use that functionality
outside of Squid? proxyresolv can do this but 'normal' lookup fails because
you haven't got a DNS server.. no, I don't think you can. Surely it's
easier to just install a forwarding DNS server on the proxy server and/or
SNAT connections to port 53 on your ISPs DNS server.. maybe you already
have this setup. In that case you can just use "nameserver x.x.x.x" on your
client in /etc/hosts.
You see proxyresolv works by tunneling DNS requests through TCP rather
than UDP and then simply tunnels the connection through a proxy
server.
proxyresolv is a simple shell script which -
preload the proxy tunneling library xxxx.so
then executes for eg. - 'dig @4.2.2.2 +tcp google.com' and uses awk to
print out only the ip addresses.
Now do you see something ?
I could force all DNS requests though a TCP connection and then
preload the proxy tunneling and acheive what i want to .
but how ?
Deepak
.
- Follow-Ups:
- Re: resolving all dns though a binary
- From: Mark Hobley
- Re: resolving all dns though a binary
- References:
- resolving all dns though a binary
- From: xask: Deepak Mishra
- Re: resolving all dns though a binary
- From: David Schwartz
- Re: resolving all dns though a binary
- From: xask: Deepak Mishra
- Re: resolving all dns though a binary
- From: Jamin Davis
- resolving all dns though a binary
- Prev by Date: Re: Wireless config
- Next by Date: Re: resolving all dns though a binary
- Previous by thread: Re: resolving all dns though a binary
- Next by thread: Re: resolving all dns though a binary
- Index(es):
Relevant Pages
|