Solved

DNS Virtual Hostname or Multihomed?  How to set this up...

Posted on 2009-07-13
5
301 Views
Last Modified: 2012-05-07
I am kinda weak in my DNS experience, I need help setting something pretty simple up.  DNS is running on Win Server 2003.

I need a hostname to use two IP addresses for redundancy.  I have a load balancer application that could benefit from this.  I have two machines, one is a primary server and the other is the backup.  If the primary goes down, I want the backup to respond to the same name.  I know the clients will timeout on the primary when it goes down, but at least after awhile they'll be able to reconnect to the backup if DNS redirects them to the correct IP.  I don't think it matters which server they are using if they are both online, what I need is for one of the two to always be available.

common DNS name: JPLTS0

Primary Server: 172.16.7.175
Backup Server:172.16.7.113

What steps do I need to do in DNS management to make this possible?

Thanks..
0
Comment
Question by:jamietallman
  • 3
  • 2
5 Comments
 
LVL 70

Expert Comment

by:Chris Dent
ID: 24840113

DNS won't care if your services are up or down.

If you need it to respond with a specific IP depending on service state you need to remove the down address from the DNS system entirely. Typically this means having something monitor the service, then make changes in DNS if the service state changes.

Chris
0
 
LVL 1

Author Comment

by:jamietallman
ID: 24840856
I wondered how DNS would figure this out.  I guess it won't.  Do you recommend a way to monitor DNS service?
0
 
LVL 70

Expert Comment

by:Chris Dent
ID: 24840870

It's the application you need to monitor rather than DNS. Do you have any monitoring software in place at the moment? If something can tell when the service breaks it may be possible to have that fire off a script and make changes in DNS.

Chris
0
 
LVL 1

Author Comment

by:jamietallman
ID: 24840888
So i could monitor it with pings to see if the machine is down, then if it is, programmatically change the DNS entry to the backup IP address or vice versa.

I was really hoping to not have to do something custom like that, but I suppose I could.  
0
 
LVL 70

Accepted Solution

by:
Chris Dent earned 125 total points
ID: 24840935

Yep, that would do.

Your choices for changing the record are likely to be DNSCMD or WMI. WMI is more flexible, but a bit more effort than DNSCMD. For DNSCMD you would be removing the record and adding a new one (or just removing depending on the situation).

Chris
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Most DNS problems are VERY easily troubleshot and identifiable if you can follow the steps a DNS query takes. I would like to share the step-by-step a DNS query takes from the origin to the destination. _____________________________________________…
There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

792 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