DNS record "site-related"
-
Thursday, February 23, 2012 1:39 PM
Hi all,
let's say I've a DNS with a zone AD integrated (test.local). My AD have several sites, let's say that
Site A has subnet 10.0.0.0/24 -> here I've a webserver (webserver.test.local) with IP 10.0.0.100
Site B has subnet 10.0.1.0/24 -> here I've a webserver (webserver.test.local) with IP 10.0.1.100
Site C has subnet 10.0.2.0/24 -> here I've a webserver (webserver.test.local) with IP 10.0.2.100
So I've a webserver in each site. I wish that:
users in site A have 10.0.0.100 has response for a DNS query for webserver.test.local
users in site B have 10.0.1.100 has response for a DNS query for webserver.test.local
users in site C have 10.0.2.100 has response for a DNS query for webserver.test.local
is it possible?
All Replies
-
Thursday, February 23, 2012 2:18 PM
Im not a DNS expert, but I think you can't from the DNS do that.
A ugly method could be a computer GPO with a VBScript that do that for each site;
echo 10.0.x.100 webserver.test.local >> %windir%\system32\drivers\etc\hosts
MCP | MCTS 70-236: Exchange Server 2007, Configuring
-
Thursday, February 23, 2012 5:43 PM
Hello,
the networking forum is the better place to ask http://social.technet.microsoft.com/Forums/en-US/winserverNIS/threads?page=1
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://msmvps.com/blogs/mweber/Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
-
Thursday, February 23, 2012 6:17 PM
If you would configure your DNS that way, it would load balance the queries between the web servers. One way that it is possible to do that is edit the local hosts file on each client in the specific site (Round Robin). There is no GPO that does this, but you would probably wany to configure a script. Something like: "echo 10.0.0.10 name.domain.com>>c:\windows\system32\drivers\etc\hosts". So you could configure your script to run for ex at logon and link the GPO to the site you want. For 3 sites you should have 3 gpo's linked to each site.
http://apdubey.blogspot.com/2008/09/edit-host-file-by-batch-file.html
Hope it helps.
MCTS - Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. http://mariusene.wordpress.com/
- Edited by Marius EneMVP Thursday, February 23, 2012 6:18 PM
- Marked As Answer by Tiger LiModerator Monday, February 27, 2012 9:51 AM

