Here website which I want to access

http://elele.cmpe.boun.edu.tr/

I guess there is a problem with DNS, so I can reach it via Ip adress :

http://79.123.177.252/

but how I gonna reach subdomain:

http://projects.elele.cmpe.boun.edu.tr

Edit:

I added

79.123.177.252 elele.cmpe.boun.edu.tr

to host.txt under %windir%\system32\drivers\etc\hosts

elele.cmpe.boun.edu.tr works http://projects.elele.cmpe.boun.edu.tr/ doesn't work

link|improve this question
1  
You have to do this for every single domain. So you need to set a hosts file entry for projects.elele.cmpe.boun.edu.tr as well. – Raffael Luthiger Dec 25 '10 at 14:27
feedback

2 Answers

up vote 4 down vote accepted

Not hosts.txt just plain hosts in Windows as well. %windir%\system32\drivers\etc\hosts

Make sure you have permission to modify the file; also make sure it's not readonly.

This works, I do it all the time.

link|improve this answer
feedback

I'm guessing the webserver on that address is using vhosts, meaning the browser will tell the webserver what the hostname was you were actually accessing.

The best quick hack is probably to add that host with that IP address to /etc/hosts on a *nix box, or hosts.txt on a windows box. It will look up hostnames in those files, before trying a DNS request.

link|improve this answer
Do you know where it stands in Windows? – metdos Dec 25 '10 at 12:30
That did not work. – metdos Dec 25 '10 at 12:38
2  
@metdos: "did not work" isn't a very useful description of the problem. What did you try to do? What exactly happened? Was there an error message? What exactly do you have in %windir%\system32\drivers\etc\hosts. If necessary, add this information to your question (you might mark it as an edit or add a comment saying what you changed) – RedGrittyBrick Dec 25 '10 at 13:51
feedback

Your Answer

 
or
required, but never shown

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