?
Solved

DNS and offline servers

Posted on 2007-10-20
2
Medium Priority
?
424 Views
Last Modified: 2008-03-10
Dear experts,

I'm not sure I'm looking at things the best way, but here's what I intend to do on a small scale. I have two web servers and a DNS server. They are all about 10 feet away from me and I have complete admin access to them.

I'm planning to take down WebServer A for a few hours, but keep WebServer B online. While I'm doing maintenance on WebServer A, I'd like all requests for it to be answered by WebServer B.

Do I just update DNS records to point to WebServer B and then have them point back to WebServer A when I'm done, or is there a more efficient (perhaps better) way than what I'm thinking of?

The web servers are running Debian 4 and the DNS is running Mac OS X Server.

Thanks in advance!
0
Comment
Question by:jericotolentino
2 Comments
 
LVL 7

Accepted Solution

by:
dlangr earned 400 total points
ID: 20115141
Note down the curren TTL of the dns record. Set the TTL of the dns record to a low value, like 60 for a minute or even lower. The lowest possible value is 0 , telling dns server not to cache the record at al.

Now that you lowered the TTL, wait the time the TTL was before, or if not possible due to time constraints, as long as you can.

Every server that will request the dns record, will now rerequest it when the record in it's cache is older then the  time specified by the TTL. This way you can make quick changes without waiting for dns server all over the world to catch up.

You can now do what you suggested: change the ip temporarily to point to the other server.

Just be sure to put the original TTL back in place after you are done, so your dns server won't get beaten by others with requests for to long.
0
 
LVL 5

Author Comment

by:jericotolentino
ID: 20119764
Thanks for your help! It's simple and works perfectly!
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

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

So, you're experiencing issues on your network and you've decided that you need to perform some tests to determine whether your cabling is good.  You're likely thinking that you may need to spend money which you probably don't have on hiring/purchas…
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month17 days, 11 hours left to enroll

829 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