Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Domain name pointing to 2 different DNS servers

Posted on 2009-04-14
6
Medium Priority
?
239 Views
Last Modified: 2012-05-06
Hello guys,

When you register a domain name, let´s say at GODADDY.com and they ask you for the DNS servers, if one of the servers is down, the other DNS server is supposed to serve in order to browse the website?

Let's say I have DNS1 and DNS2, when a user try to browse my site, it will always point to DNS1 and if this one is down, it will automatically point to DNS2?

Thanks!
0
Comment
Question by:pvg1975
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 71

Expert Comment

by:Chris Dent
ID: 24137230

Typically it load-balances over DNS servers (alternating requests to each DNS server).

The response will be cached on the system performing the query; not every client visiting the site will need to perform a full lookup of the name via your DNS servers.

Chris
0
 

Author Comment

by:pvg1975
ID: 24142650
Thanks Chris, so that means that if I run a database on one server, it should replicate on the other server as well?

Thanks.
0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 24145718

It really depends what you've got set up. DNS operates entirely separately from any database engine or web service. However, if you have more than one web server (for fault tolerance) it would make sense to make sure the same content is available on both servers.

Chris
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

Author Comment

by:pvg1975
ID: 24148438
Thanks Chris,

So if I set up 2 DNS servers in my domain name, lets say DNS1 and DNS2, can al http requests go straight to DNS1, and if this one is offline, go to DNS2?
0
 
LVL 71

Accepted Solution

by:
Chris Dent earned 2000 total points
ID: 24149865

It's not as simple as that I'm afraid.

You must split up DNS and HTTP. They operate on very different levels, DNS couldn't care less about HTTP and vice versa.

I think what you're looking for is Fail-Over should one of the web servers fail? You can use DNS to provide that, but it's not quite that simple, and gets more complex if the DNS service and web service share a server.

Normally you would have:

DNS1 (1.2.3.4) - Primary for domain.com
www.domain.com   IN A   1.2.3.4   TTL 300 (5 minutes)

DNS2 (1.2.3.5) - Primary for domain.com
www.domain.com   IN A   1.2.3.4   TTL 300 (5 minutes)

Note that both DNS servers are Primary, that means no automatic replication of changes between the zones. If we don't make both Primary you're pretty stuffed if you lose the Primary DNS Server, you won't be able to make changes (Secondary zones are Read Only).

Also notice that we have a low TTL set, 5 minutes. The TTL or Time To Live defines how long a requesting DNS server should remember your record before asking for it again.

If the web service on 1.2.3.4 fails you would have to manually change the IP address for www.domain.com and point it to 1.2.3.5. Clients would continue to go to 1.2.3.4 until you do.

You could do this:

DNS1 (1.2.3.4) - Primary for domain.com
www.domain.com   IN A   1.2.3.4   TTL 300 (5 minutes)

DNS2 (1.2.3.5) - Primary for domain.com
www.domain.com   IN A   1.2.3.5   TTL 300 (5 minutes)

In this situation while both servers are up load will be roughly split between the servers. It's very rough because you cannot control who queries DNS1 and who queries DNS2 while both are available.

If DNS1 were to fail it should drop off and only DNS2 would be responding, and therefore only DNS2 would be used as a Web Server (because that's the only version of the www record available). We're still reliant on the low TTL or 1.2.3.4 will be used if it's in memory / in the cache.

In short, while both are up you will not be able to control which web server is used unless you only have one www record.

Chris
0
 

Author Comment

by:pvg1975
ID: 24151241
Hi Chris. Thanks for your prompt answer :-)

I am looking to have 2 servers (Windows 2003) in two separate datacenters, and incase one of them fails, the other  one takes over.

I didn't know it was that difficult.

Thanks again

Paola.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

610 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