Solved

DNS Alias

Posted on 2010-09-15
8
145 Views
Last Modified: 2014-11-24

I have trying to create a development environment that would allow us to alias systems based on their location or intended use much like using unique hosts files. The plan is to use dedicated DNS servers to manage each environment. Examples would be production, development or disaster recovery sites. I am at a loss as to how this would work and still maintain AD functionality.
0
Comment
Question by:germancarguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 6

Expert Comment

by:collins23
ID: 33681968
You question is a little confusing to me.

why would you need separate DNS servers ? can't you simple add A records/ CNAME records in your current DNS server ?

Names are just names, they should affect anything ( atleast if i understand you correctly )

0
 

Author Comment

by:germancarguy
ID: 33682167
An example would be I have 3 different SQL servers all in the same domain. Server1 is in our production environment and is used every day
Server2 is at our DR site is only used when we are in Dr mode or testing the systems at the site
and Server 3 is a development server used to test production code. I need a way other than hosts files to resolve each server with a single name depending on its intended use. This way the developers can test their code and it will run in production or at our DR site without any modifications.
0
 
LVL 6

Expert Comment

by:collins23
ID: 33682237
If they are in the same domain. I assume your domain already has a DNS server configured.

What about putting for example :

a A record like

production -> 192.168.1.4

in your current DNS server ?

0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:germancarguy
ID: 33682372
We have 3 dns servers 2 at the primary site and  1 at the DR site. Any A record we add will replicate to the other servers. That is the problem, I need a method to isolate the a record entry's either by DNS server  or forward lookup zones or subnet. Thanks for your help on this, its been a real problem.
0
 
LVL 6

Expert Comment

by:collins23
ID: 33682614
aha.. becomes more clear.

i don't know if this will work.

what if you create a new zone in the DR site server DNS server for example

and give a A record for that server in this zone. ?
0
 
LVL 26

Accepted Solution

by:
Leon Fester earned 125 total points
ID: 33701097
Your biggest issue, the fact that you want Server@DR to update on DNS@DR only.
You don't want any replication of DNS records to DNS@Production.

The issue is DEVWorkstation@Production is always reading from DNS@Production, which will never have the records that DNS@DR has...therefore DEVWorkstation cannot find any of the records on DNS@DR.

A solutions would be to create a script/batch file that replaces the users local hosts file.
Create a "standard" hosts file, which is typically blank or use existing one workstation.
Then when the developer needs to test his code, he runs the script, which replaces the empty hosts with a pre-populated hosts file, which will contain the names of your production servers which are then pointed at your DR site.

When the Developer is finished testing he can then run a second script which restores the original files.

Sample batch files:
Enable DR related hosts file:
ren c:\windows\system32\drivers\etc\hosts. c:\windows\system32\drivers\etc\hosts.prod.backup
ren c:\windows\system32\drivers\etc\hosts.dr c:\windows\system32\drivers\etc\hosts.

Restore Production hosts file
ren c:\windows\system32\drivers\etc\hosts. c:\windows\system32\drivers\etc\hosts.dr
ren c:\windows\system32\drivers\etc\hosts.prod.backup c:\windows\system32\drivers\etc\hosts.

You should rather get your developers to change the way that they code their applications/connections strings, if you were using ODBC connections then they just change the database name in the ODBC entry when they want to test. With this solution, if you do fail over to DR, you can then either change all the ODBC entries, or more simply create CNAMEs to point your Production server names to the DR Servers.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Suggested Courses

617 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