I want to put some entry in some file such as
www.google.com 127.0.0.1
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.
|
I want to put some entry in some file such as www.google.com 127.0.0.1 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. |
||||
|
|
Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. 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 closed questions here.
|
What is answer? linux: echo ' 127.0.0.1 www.google.com' >> /etc/hosts windows: put line into windows/system32/drivers/etc/hosts |
|||||
|