1

I am having a little trouble understanding how to manipulate the hosts file. I am using IIS 7.5 and Windows Server 2008 RC2.

How can I make any requests from my machine to google.com resolve to bing.com?

smartcaveman
  • 685
  • 2
  • 8
  • 18
  • 2
    Why would you want to do that? Can't you just change the source of the request? Install a new default search provider? – Keith Jun 11 '11 at 02:17

2 Answers2

3

Use nslookup to find an IP address for bing.com. Then add an entry in your hosts file that looks like:

1.2.3.4 google.com www.google.com

Replace the IP address with the IP you found for bing.com.

Keep in mind, though, that there's not one IP address for any of these services that operate at a massive scale, so the IP address you're getting for bing.com or google.com today may not be in use tomorrow.

EEAA
  • 109,363
  • 18
  • 175
  • 245
  • ... or even 20 seconds from now (the TTL on the resource record set visible from here at the time that I write this). – JdeBP Jun 11 '11 at 23:24
1

Bing has the following IP: 65.55.175.254

So it would be

65.55.175.254 google.com www.google.com

It will change the url due to redirection on bing's end.. nothing you can do about that

Mike
  • 22,310
  • 7
  • 56
  • 79
  • 3
    Flip side, any time bing.com decides to change the IP address, your search will be broken. – Jamess Jun 11 '11 at 05:56