Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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:


In Ubuntu it is in:


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: 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

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. – nthonygreen Jan 20 '11 at 10:29

Your Answer


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.