[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Viewing websites before domains resolve.



At 10:48 AM 9/13/01, Kai Deecke wrote:
Say my main IP is: xxx.xxx.xxx.xxx and I set a site up www.domain.com.
Is there any way of getting http://xxx.xxx.xxx.xxx/sites/domain.com/
Or similar so you can preview the site before your domain resolves?

It is very easy to "force" a domain to resolve for your own computer. All OSes have a 'hosts' file that works just like DNS. Your mail headers indicate you're running Outlook, and hence Windows. Edit your c:\windows\hosts or c:\winnt\hosts file in Notepad. Add a line like the following:

1.2.3.4 example.com

Use either a tab or spaces between the IP and domain name. You can even configure multiple domain names to point to the IP -- just do something like:

1.2.3.4         example.com www.example.com mail.example.com

This is a great way to test your site before activating DNS.

Note there's no need to do anything further on the server, including RewriteRules, to make this work.

--------------------------------------------------------------------------
Ted Behling, Web Application Developer - Monarch Information Systems, Inc.

43 Folly Field Road, Unit 4, Hilton Head Island, SC 29928-5434
E-mail: mailto:TBehling@xxxxxxxxxxxxx
Phone/Fax: 1-800-842-7894    Local or Outside the USA: 1-843-842-7894
Cell Phone (urgent issues): 843-816-7895
Cell Phone E-mail: mailto:TedPhone@xxxxxxxxxxxxx (116 letter limit)
Web site: http://www.MonarchIS.net
--------------------------------------------------------------------------