Solved

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

Posted on 2015-01-19
2
152 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
2 Comments
 
LVL 25

Accepted Solution

by:
DrDave242 earned 500 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
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.

760 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

21 Experts available now in Live!

Get 1:1 Help Now