Local Test Server - Easy Yes or No

Posted on 2005-04-09
Last Modified: 2010-03-04
I have set up a local test server using all the default settings for Apache 2.0  Is it possible to set up some sort of local dns so that I can use domain names and sub-domain names while maintaining my ability to surf the internet? or is it too much of a headache and I should just suck it up.  Yes or No is fine if you don't want to go into detail.  If you do want to go into detail I will raise the points accordingly.  Thank you for your time.
Question by:nine7sicks
    LVL 14

    Assisted Solution

    It shouldn't be too difficult to set up a local dns server for testing purposes. You can do a google search on how to use the dns server that comes with most linux distros.

    LVL 7

    Accepted Solution

    Why bother? use hosts.txt on your Windows box to spoof DNS. Then when you move to a production server, the addresses will match and hte move will be transparent. Since you must likely will have small amounts of DNS-able contacts, this may be an easier solution.

    If you wanted, you could do a zone transfer between your DNS servers (production/test) but I think it'd be easier to add a DNS entry for your local DNS server, ... so you'd have :
    DNS 1 ; Primary DNS
    DNS 2 ; Secondary DNS
    DNS 3 ; local DNS

    It would only slow down unresolvable addresses.

    Author Comment

    Thanks, I appreciate it I will look on google like trigger-happy suggested for hosts.txt and the ways in which I can use it like Promethyl suggested.
    LVL 7

    Expert Comment

    Let me know if there's more I can do for you.

    File Locations:

    Windows 95/98/Me c:\windows\hosts

    Windows NT/2000/XP Pro  c:\winnt\system32\drivers\etc\hosts

    Windows XP Home c:\windows\system32\drivers\etc\hosts

    Mine+Test Data:

    # Copyright (c) 1993-1999 Microsoft Corp.
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    # For example:
    #          # source server
    #              # x client host       localhost       myserver   promethyl

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now