Interesting mental exercise - the most comprehensive way around that filtering technique is simply to delete the hosts file (or edit it, I suppose). But if it were somehow made immutable, how would I get around it? Ignoring the difficulty of doing so under Winsock32, I think I would run a transparent http proxy server bound to localhost that did its own DNS without relying on the system libs... Hmm, that sounds exactly like the win32 port of squid. -Adam
Don't rely on the system resolver... Proxy out, by IP address if need be.
Not sure if Windows has an equivalent of LD_PRELOAD, but using your own resolver that always uses DNS, would do it.
Sean
On Mon, Aug 9, 2010 at 10:19 AM, Adam Thompson athompso@athompso.netwrote:
Interesting mental exercise - the most comprehensive way around that filtering technique is simply to delete the hosts file (or edit it, I suppose). But if it were somehow made immutable, how would I get around it? Ignoring the difficulty of doing so under Winsock32, I think I would run a transparent http proxy server bound to localhost that did its own DNS without relying on the system libs... Hmm, that sounds exactly like the win32 port of squid. -Adam
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
On Mon, 2010-08-09 at 10:41 -0500, Sean Walberg wrote:
Don't rely on the system resolver... Proxy out, by IP address if need be.
Not sure if Windows has an equivalent of LD_PRELOAD, but using your own resolver that always uses DNS, would do it.
This just reminded me of something, I've always wondered is why you can't have a "hosts" file in your home directory that takes priority over /etc/hosts.
On my laptop I have a number of entries in /etc/hosts and every dam time I rebuild my laptop I forget to take a current backup and I have to rebuild it.
/home is on a separate partition so I wouldn't loose it on a rebuild.
Any suggestions on alternative ways to solve this?
You could set something up in your .bashrc to check if /etc/hosts has changed, then make a new copy in ~ if it has. I leave implementation to the student -- I'm just an idea rat.
On Mon, Aug 9, 2010 at 11:43 AM, John Lange john@johnlange.ca wrote:
On Mon, 2010-08-09 at 10:41 -0500, Sean Walberg wrote:
Don't rely on the system resolver... Proxy out, by IP address if need be.
Not sure if Windows has an equivalent of LD_PRELOAD, but using your own resolver that always uses DNS, would do it.
This just reminded me of something, I've always wondered is why you can't have a "hosts" file in your home directory that takes priority over /etc/hosts.
On my laptop I have a number of entries in /etc/hosts and every dam time I rebuild my laptop I forget to take a current backup and I have to rebuild it.
/home is on a separate partition so I wouldn't loose it on a rebuild.
Any suggestions on alternative ways to solve this?
-- John Lange http://www.johnlange.ca
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable