I want to put some entry in some file such as
So that whenever a linux user types the domain name www.google.com on his browser then the website hosted on the localhost comes. Can somebody tell me how to do this.
closed as off topic by GregD, Ward, Iain, Bart De Vos, Maxwell Sep 22 '11 at 7:50
Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
What is answer?
linux: echo ' 127.0.0.1 www.google.com' >> /etc/hosts
put line into windows/system32/drivers/etc/hosts