6

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?

Simon Hayter
  • 33,097
  • 7
  • 60
  • 119
phunehehe
  • 163
  • 4

2 Answers2

8

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

Zistoloen
  • 10,056
  • 6
  • 36
  • 59
Ilian Iliev
  • 1,255
  • 1
  • 11
  • 24
1

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

nthonygreen
  • 1,135
  • 5
  • 8