You can add your domain name(s) to your hosts file (circumvent DNS) by doing the following for all local computers:
Note: please remember to remove the entry you added (and ONLY that entry; your computer may not work correctly if you remove all entries!) when you're done testing. This will avoid problems down the road if your account is migrated, assigned a dedicated IP, etc.
LINUX (I.E. UBUNTU)
-
Open an xterm (or any other terminal emulator of your choice)
-
Type in: sudo nano /etc/hosts (or use any other editor of your choice, such as my personal favorite, vim (hit i to edit text in vim); just be sure to edit the file with root privileges)
-
Add a line containing xx.xx.xx.xx yourURL.com, where xx.xx.xx.xx is the appropriate IP address for the Greenix360 server, VPS, etc. (this will most likely be the main shared IP unless you have purchased a dedicated IP) and yourURL.com is your actual domain or subdomain hosted on that server (do not insert slashes, http://, or the like)
-
When done, save the document (use CTRL+X to save and exit, which you must confirm by hitting the y key in nano; vi(m) users would hit Esc then :wq)
-
You should now be able to visit yourURL.com in a web browser and be able to see the content you have hosted on our servers
To remove the entry...
-
Follow steps 1 and 2 above
-
Remove the entry you added (in nano, move the cursor down to the entry and hit CTRL+K to delete the line; in vi(m), move the cursor to the line and hit dd)
-
Save the document (see Step 3 above for instructions on how to do that)
You're done!
WINDOWS
By default, if you try to modify your hosts file in Vista or Windows 7 it will not let you save it. It tells you that you don't have permission. To successfully modify the hosts file, run notepad.exe as an administrator and open the file.
-
Browse to Start, then All Programs, then Accessories
-
Right-click Notepad, then select Run as Administrator
-
Click Continue on the UAC prompt
Note: this prompt will only appear if UAC is enabled. -
Click File, then Open
-
Browse to C:\\Windows\System32\Drivers\etc
-
Change the file filter dropdown box from Text Documents (*.txt) to All Files (*.*)
-
Select Hosts and then click Open
-
Add an entry like this: xxx.xxx.xxx.xxx yourURL.com (see Step 3 under the Linux instructions for details)
-
Save your host's file
-
Enter http://yourURL.com in the address bar of your web browser and press Enter
Because the host's file will tell your computer to check a different IP address for your site, you can now preview your site as it is served from our server.
To remove the entry...
-
Follow steps 1-7 above
-
Delete the line you had added
-
Save the file
MAC OS X
-
Open a terminal by going to Applications, then Utilities, then Terminal
-
Type in: sudo su -
-
Press Enter
-
Type in: echo "xxx.xxx.xxx.xxx yourURL.com" >> /private/etc/hosts (see Step 3 under the Linux instructions for details)
-
Press Enter and you're done
To remove the entry...
-
Follow steps 1-3 above
-
Type in vi /private/etc/hosts
-
Press Enter
-
Use the cursor keys to position the cursor over the line you added above and type dd to delete the line
-
Type :wq to save your changes and exit