windows equivalent to /etc/hosts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • while-one

    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?
  • Beauregard T. Shagnasty

    #2
    Re: windows equivalent to /etc/hosts

    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\syst em32\drivers\et c\hosts

    --
    -bts
    -Friends don't let friends drive Vista

    Comment

    • Jonathan N. Little

      #3
      Re: windows equivalent to /etc/hosts

      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.9 01 my-made-up-domain-name.com
      >>
      >PUNCHLINE QUESTION:
      >How would you do that on a windows client?
      >
      C:\WINDOWS\syst em32\drivers\et c\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

      Comment

      • while-one

        #4
        Re: windows equivalent to /etc/hosts

        Thanks, that sounds like the smart way to do it.
        .....now I'll have to figure out how :-)

        Comment

        • Jonathan N. Little

          #5
          Re: windows equivalent to /etc/hosts

          while-one wrote:
          Thanks, that sounds like the smart way to do it.
          ....now I'll have to figure out how :-)

          Nicolai Langfeldt DNS HOWTO - Google Search
          --
          Take care,

          Jonathan
          -------------------
          LITTLE WORKS STUDIO

          Comment

          Working...