SamLT wrote:
On Fri, Aug 06, 2010 at 09:04:23AM +0100, eggbean wrote:
I know it's possible to use a hosts file in dnsmasq to redirect to IP
addresses or localhost.
I was wondering if it was possible to somehow rewrite domains in a URL
to a different one in dnsmasq?
eg. I live in the UK, and sites like Amazon and eBay have .co.uk sites.
Often, when I click a link on the web, I get the ebay.com site, and I
have to edit the address manually to get the same auction on the
ebay.co.uk site, by deleting the 'm' and replacing it with '.uk'.
So is it possible to do this automatically using dnsmasq, or some other
way?
I am just as much interested in the technical possibility of this as I
am of the small practical benefit to me.
Hello,
I don't think you got an answer yet.
This isn't a job for the nameserver, but more the job of a userscript or
equivalent(keywords: firefox greasemonkey greasefire...)
HTH
sam
Another approach would be to use an http proxy to remap the outgoing
request. I'd suggest privoxy or squid. Pretty sure privoxy could do it,
look at the 'redirect' action. I'm guessing the relevent page for Squid
is http://wiki.squid-cache.org/Features/Redirectors
-- Paul