Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


July 15, 2009

Q. If I'm using multi-site clustering with multiple IP addresses, how does DNS resolution work?

RSS
Subscribe to Windows IT Pro | See More Domain Name System (DNS) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. Normally, the active IP address (the IP address for the subnet where the resource is hosted) is registered in DNS with the network name. This allows clients to resolve the name to the active IP address. Now imagine a site failover occurs and a new IP address is registered with DNS for the network name. The problem is twofold.

Firstly, clients cache DNS entries for a period of time, the Time to Live (TTL) of the DNS record, before checking with DNS if the resolution has changed. Secondly, DNS is usually implemented as multimaster with Active Directory (AD) integration, so while an update to DNS may be made in one location it will take time for that DNS update to replicate to other DNS servers in different AD sites.

The first step you can take is to reduce the TTL of the DNS host record registered by the cluster service from the default value of 1200. For example, the Exchange team recommends a value of 300 (five minutes). This means clients would, at worst, keep trying the wrong IP address for five minutes before they check with DNS to see if the resolution address has changed.

The other step you can perform is to tell the cluster service to register all IP addresses for the network name, even if they’re not online. When the clients query DNS, they’ll be sent all possible IP address values. This is only an option if the application that is attempting to connect is smart enough to try all the returned IP addresses and not give up if no communication is possible on the first address. This means if the primary goes offline and moves to a new IP address, the client application already has the other IP address to try.

To change the TTL of the host record, use the command

Get-ClusterResource <Resource> | Set-ClusterParameter HostRecordTTL <new value>

To configure to register all IP addresses with the host record, use the command

Get-ClusterResource <Resource> | Set-ClusterParameter RegisterAllProvidersIP 1

Related Reading:
  • Q. What is the problem with Windows Server 2008 cluster network names?
  • How do I change the IP address of a DNS server?
  • How DNS Works
  • More DNS Tips


  • Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.

    End of Article



    Reader Comments

    You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




    Top Viewed ArticlesView all articles
    WinInfo Short Takes: Week of November 23, 2009

    An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

    Command Prompt Tricks

    One reader shares his tip for setting up the command prompt to reflect a remote path. ...

    2009 Windows IT Pro Editors' Best and Community Choice Awards

    Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


    Networking Whitepapers Should Your Email Live in the Cloud?

    A New Backup and DR Solution Available for SMBs

    Related Events Managing IT Across Multiple Locations

    No Do Overs – Get Virtualization Right the First Time

    Windows, Unix, Linux Interoperability

    Check out our list of Free Email Newsletters!

    Networking eBooks Spam Fighting and Email Security for the 21st Century

    Understanding and Leveraging Code Signing Technologies

    SQL Server Administration for Oracle DBAs

    Related Networking Resources Introducing Left-Brain.com, the online IT bookstore
    Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

    Discover Windows IT Pro eLearning Series!
    Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


    Windows IT Pro Home Register FAQ for Windows WinInfo News
    Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
    SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
    Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
     
     Windows IT Pro is a Division of Penton Media Inc.
     © 2009 Penton Media, Inc. Terms of Use | Privacy Statement