473,394 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

windows equivalent to /etc/hosts

When I make a new website, during development I create
a new virtual domain definition (using a temporary, made-up name)
in apache's configuration, and then bounce my server.

Then, on the client linux box I use for development,
I can add a line to my local /etc/hosts
file that looks like the following:

12.345.678.901 my-made-up-domain-name.com

Then I can look at that temporary virtual domain during development.
If my customer was a MacIntosh user, (s)he could use the same
/etc/hosts trick to view and critieque the development progress,
from his/her desktop Mac.

PUNCHLINE QUESTION:
How would you do that on a windows client?
Mar 26 '08 #1
4 4819
while-one wrote:
Then, on the client linux box I use for development,
I can add a line to my local /etc/hosts
file that looks like the following:

12.345.678.901 my-made-up-domain-name.com

PUNCHLINE QUESTION:
How would you do that on a windows client?
C:\WINDOWS\system32\drivers\etc\hosts

--
-bts
-Friends don't let friends drive Vista
Mar 26 '08 #2
Beauregard T. Shagnasty wrote:
while-one wrote:
>Then, on the client linux box I use for development,
I can add a line to my local /etc/hosts
file that looks like the following:

12.345.678.901 my-made-up-domain-name.com

PUNCHLINE QUESTION:
How would you do that on a windows client?

C:\WINDOWS\system32\drivers\etc\hosts
If you only have one Windows client or just one development domain this
is not too bad else you have to update the hosts file each time you add
a development site and you have to synchronize all the host files.

I just run Bind, authoritative for the LAN and forward and caches for
the outside world...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 26 '08 #3
Thanks, that sounds like the smart way to do it.
.....now I'll have to figure out how :-)
Mar 26 '08 #4
while-one wrote:
Thanks, that sounds like the smart way to do it.
....now I'll have to figure out how :-)
http://www.google.com/search?hl=en&q...=Google+Search
Nicolai Langfeldt DNS HOWTO - Google Search
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bob Smith | last post by:
Does the Win32 port of Python have a memory leak? I have some code that runs flawlessly on Linux, but bombs after a few hours on Windows. It's threaded and uses a lot of memory. Thanks!
0
by: David Swanson | last post by:
I am trying to configure the proxy section of the machine.config to handle BOTH connecting to hosts that are not "live" but rather defined in my winnt/system32/drivers/etc/hosts file. AND to hosts...
2
by: Fadi | last post by:
Backround: I am trying to figure out how to do the equivalant of a classic COM Local Server Singleton in .NET/C#. I created a coupld of simple Class Libs that exposes public interfaces and hosted...
3
by: Ashhad Syed | last post by:
I have turned on smartnavigation=True for some of the forms in my .NET application. It seemed to be working fine on Windows 2000 SP4, which also has VS 2003 installted, but when I moved the...
69
by: Peter Olcott | last post by:
Does JavaScript represent its controls internally as Microsoft Windows controls, or does it build them from scratch like Java?
1
DTV12345
by: DTV12345 | last post by:
Greetings! Imagine 2 hosts: host A runs Oracle 10g , host B runs IBM DB2 v9. I have to write a shell script (bask/Korn...) that checks if a database instance is up and running and does a bunch...
0
by: kg6ypx | last post by:
Greetings! Imagine 2 hosts: host A runs Oracle 10g , host B runs IBM DB2 v9. I have to write a shell script (bask/Korn...) that checks if a database instance is up and running and does a bunch...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.