Question

in my hosts file:

127.0.0.1   test1.ru
127.0.0.1   www.test1.ru

My broswers(google chrome, firefox) don't find this URL, can't access to this page, after editing the hosts file I've realoaded the browsers(also cleared all the cache), but still no luck why this can be happening?

I'am using denwer... the localhost is loaded succesfully, but sites like http://test1.ru - no luck

any ideas?

Was it helpful?

Solution 2

Try clearing your DNS cache. Close all browsers. From the command prompt (as administrator), type:

ipconfig /flushdns

This will flush out any cached DNS queries you have in your browsers and operating system.

OTHER TIPS

Maybe I am misunderstanding the question, but that's the whole idea of that entry.

Setting it to 127.0.0.1 makes that domain point to your local computer, so the browser tries to load the site from your local computer as soon as you try to access test1.ru.

You need to change the approach.

Hosts file is for pointing DOMAINS(stackoverflow.com, xyz.com, abc.com) to SERVERS ADDRESS just like a DNS SERVER would do so.

test1.ru 127.0.0.1

OR

test1.ru $YOURSERVER$

NOTE: To get your server's IP you can PING it and you'll know what's your server's IP Address.

Any more questions? Happy to help!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top