Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can I make DNS resolve different addresses dependant on location?

Posted on 2015-01-19
2
Medium Priority
?
210 Views
Last Modified: 2015-01-22
I have a domino web-enabled database located in mutliple location.
The documents replicate on a schedule so content is always up-to-date.
We use replicas on each site, mainly because some locations cannot procure fast Internet connections to allow everyone to use one central server.

As all sites are in one windows domain, they share DNS.
The dilemma I face is that I want anybody to be able to visit the address (database.domain.com) and be directed to their site's local server.
For Example;
a Russia uses visits to database.domain.com and the site on10.53.0.5 opens
while a user in Bahrain  visits database.domain.com and the site on10.50.0.5 opens
etc...

So far I haven't found a solution inside DNS to set-up these dynamic resolutions....
0
Comment
Question by:Unifrax
[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
2 Comments
 
LVL 27

Accepted Solution

by:
DrDave242 earned 2000 total points
ID: 40558012
At this time, Windows DNS has no built-in mechanism for this. I can only think of one way to make it work. It's a little bit kludgy, but it should do the job:

Assuming database.domain.com is the FQDN you want to use, create separate forward lookup zones named database.domain.com on the DNS servers in each site. Don't make these AD-integrated zones, and don't set up any zone transfers from one site to another, as you don't want the zones replicating between sites. (Zone transfers between DNS servers within a site are fine.) In each zone, create blank host records with the IP addresses of the corresponding database.domain.com servers within that site.

With this arrangement, users in each site should only be able to resolve database.domain.com to the IP addresses of the servers within that site. In my experience, if you have a zone named database.domain.com containing a blank host record and also have a zone named domain.com which contains a host record named database, the blank host record in the database.domain.com zone is the one whose IP address will be returned in response to a query. You may want to test this a bit before deploying it in production, though.

EDIT: Of course, this assumes that each site has at least one DNS server. If this isn't the case, I can't think of a way to make it work within Windows DNS.
0
 

Author Closing Comment

by:Unifrax
ID: 40564757
This worked perfectly. Thanks!
0

Featured Post

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

650 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