If you would like to preview a domain or website but haven't switched the DNS entries for your domain over to Joyent's name servers yet, you can use Virtualmin, or tweak your local DNS
The secret here is editing the hosts file, which your computer always checks before asking any information from the valid nameservers of a domain.
On Unix/Linux/OSX, this file is usually located at:
/etc/hosts
On most Windows XP systems, this file is located at:
c:\windows\system32\drivers\etc\hosts
On most Windows NT/2000 systems (and upgrades from Windows 2000 to XP), this file is located at:
c:\winnt\system32\drivers\etc\hosts
On most Windows 95/98/Me systems, this file is located at:
c:\windows\hosts
Next, add one entry to this file in the form:
111.222.333.444 your.domain.com
Replace 111.222.333.444 with the server IP you are testing/building on. Replace your.domain.com with the name you wish to preview. Whitespace is fine between the IP and the domain name - most people use a tab or two. You can also do something like this:
111.222.333.444 yourdomain.com www.yourdomain.com
which will cover both hostnames (with and without the www) for your site.
Once you've modified your hosts file, you should also flush your computer's DNS cache. On Unix/Linux/OSX (up to 10.4.x), type the following in the command line:
lookupd -flushcache
Leopard Users will use the following line:
dscacheutil -flushcache
On Windows, start the command promt (from the Start menu, click Run, type cmd, and press Enter) and type the following:
ipconfig /flushdns
Once you've completed all three steps you may also need to refresh or restart your browser.
hosts file when you are done, otherwise you might forget and lose track of what site you are seeing.