Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a somewhat complicated situation. We have a blog let's say at myblog.com and it is running fine. However, we now want to cut the budget and use a free hosting service isgreat.org. The service allows us to let a domain point to it so that we can host our blog.

The problem is, now I'll have to change the domain's HOST record in order to start testing it. I obviously want a way to test it before actually changing anything. Using an alias for test.myblog.com requires the domain to be managed in the service's control panel, which I don't want either.

So, the question is, can I type the IP address of the host in the browser, and somehow tell it that I am referring to it under the domain name myblog.com, so that it will show me my blog, instead of a default page?

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

You can edit your hosts file in a way that this domain name points to different IP. For example in Windows the host file is in:

\Windows\System32\drivers\etc\

In Ubuntu it is in:

/etc/

So you find the file, open it with simple text editor, and write the new IP and the domain name. It must look something like:

92.152.175.86 mydomain.com

share|improve this answer
    
yes thanks! how can I forget that? BTW you meant "Ubuntu", didn't you? –  phunehehe Oct 1 '10 at 10:04
    
Yes, thanks for the remark. –  Ilian Iliev Oct 1 '10 at 10:19
add comment

On the Mac, changing the hosts file is a little tricky, so use the free Gas Mask to do this.

share|improve this answer
    
Nice app! I wouldn't class it as "tricky" on the Mac though, in case anyone is wondering it's /etc/hosts and works how you would expect. –  ZoFreX Jan 19 '11 at 9:49
    
"tricky" may be overstating it, but i think a lot of Mac users don't know how to view hidden files, and this app cuts out that step. –  anthonyg Jan 20 '11 at 10:29
add comment

Your Answer

 
discard

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.