Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Local Test Server - Easy Yes or No

Posted on 2005-04-09
Medium Priority
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
  • 2
LVL 14

Assisted Solution

trigger-happy earned 200 total points
ID: 13743280
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.


Accepted Solution

Promethyl earned 200 total points
ID: 13744112
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

ID: 13744413
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.

Expert Comment

ID: 13744758
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:
#     rhino.acme.com          # source server
#     x.acme.com              # x client host       localhost       myserver   promethyl   promethyl.com

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses
Course of the Month15 days, 18 hours left to enroll

581 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