Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
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 2:17

2 Answers 2

up vote 1 down vote accepted

Bing has the following IP:

So it would be google.com www.google.com

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

share|improve this answer
Flip side, any time bing.com decides to change the IP address, your search will be broken. –  Jamess Jun 11 '11 at 5:56

Use nslookup to find an IP address for bing.com. Then add an entry in your hosts file that looks like: 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.

share|improve this answer
... 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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.