Use the DNS CNAME for database connectivity

362 views
Skip to first unread message

Richard West

unread,
Sep 13, 2010, 3:32:26 PM9/13/10
to AtlantaMDF
We are in the process of migrating and consolidating a few of our SQL
servers. In the process we are upgrading any old server to SQL 2008.

One idea that I had was to begin start using DNS CNAME records for
both SQL Server, and perhaps event the databases themselves.

There is a nice artice about this topic on Tech Republics site:
http://blogs.techrepublic.com.com/networking/?p=460

It sounds like a nice way to abstract the database from a specific SQL
server so that the database could be moved to a new server if required
without any changes to the application code or clients -- just by
making a single DNS change.

However, before I proceed I would like to know if anyone has any
direct experience in using this technique?

Thanks,
Richard

Slick

unread,
Sep 13, 2010, 3:38:51 PM9/13/10
to AtlantaMDF
We use this for all our servers and its the best thing ever. Never
have to worry apps, etc.

I can't recall having any bad experiences using this.

Jonathan Kehayias

unread,
Sep 13, 2010, 3:40:35 PM9/13/10
to atlan...@googlegroups.com
I started implementing CNAME's at my job almost immediately upon being hired there, and I have never had a issue associated with using them.  We split CNAME's at the application level for example MOSS 2010, we have DB-MOSS, DB-MOSS-DEV, and DB-MOSS-QA all pointing to different servers.  We started with DB-MOSS pointed at shared consolidated server, but when the full production rollout occured, the high connection rates and constant usage led us to move the MOSS databases to a separate environment dedicated to it.  We did that my mirroring the databases to the new server, and then in a short downtime, we initiated failover of mirroring in SQL, changed the CNAME in DNS, and after running ipconfig /flushdns on the MOSS farm everything was back online, it took less than 3 minutes to accomplish.  I'd highly recommend using them.
 

--
You received this message because you are subscribed to the Google Groups "AtlantaMDF" group.
To post to this group, send email to atlan...@googlegroups.com.
To unsubscribe from this group, send email to atlantamdf+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/atlantamdf?hl=en.


Richard West

unread,
Sep 14, 2010, 9:00:49 AM9/14/10
to AtlantaMDF
Thanks for the great feedback! I think that this is something that we
will be implementing.
Reply all
Reply to author
Forward
0 new messages