hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Question about nameservers on different machines (servers)
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Question about nameservers on different machines (servers)

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-22-2010, 03:06 PM
yello yello is offline
Newbie
 
Join Date: May 2008
Posts: 22

Question about nameservers on different machines (servers)


I have setup 4 nameservers for a website. The first two nameservers are hosted on Server 1 and the other two on Server 2

If one server goes down, the one pair of nameservers won’t resolve anywhere. Will the website keep working with the other two working nameservers? Does this need any propagation on user side?

I do not actually know how the nameservers work in this case. Any experienced member?

Reply With Quote


Sponsored Links
  #2  
Old 11-22-2010, 03:35 PM
LVPSHosting LVPSHosting is offline
Web Hosting Master
 
Join Date: Sep 2009
Posts: 1,409
Yes, it will work if you put as authoritative DNS servers for your web site domain name those 4 DNS servers.

__________________
LVPSHosting.com|Virtual Private Servers|Dedicated Servers|
Managed Hosting Solution|24/7/365 Support
Datacentar and servers location: Holland, Europe

Reply With Quote
  #3  
Old 11-22-2010, 03:38 PM
yello yello is offline
Newbie
 
Join Date: May 2008
Posts: 22
Does it work instantly or is there any dns cache anywhere affecting it?

Reply With Quote
Sponsored Links
  #4  
Old 11-22-2010, 05:23 PM
Vinayak_Sharma Vinayak_Sharma is offline
Always Learning...
 
Join Date: Aug 2002
Location: Bharat
Posts: 4,575
If you are hosting your DNS on only two machines, you can do away with two NS only, one on each machine.

Even if one is up your site will remain up, assuming that both these NS are authoritative and your site is on a different server.

If you are hosting your site on two different servers with two NS on each, and first server goes down, for some visitors site will remain down because of DNS cache.

__________________
Vinsar.Net - Quality Web Hosting at Economical Price on USA, UK & Italian Servers
Offering domains, shared, reseller & VPS hosting.
Reliable Domain Reseller Account Resell Domains with Confidence

Reply With Quote
  #5  
Old 11-22-2010, 06:34 PM
yello yello is offline
Newbie
 
Join Date: May 2008
Posts: 22
I will explain exactly what i want to do: I have 4 nameservers. 2 of them are in server No1 and the other two are in server No2. Website is hosted on Server No1. I am doing this because i would like to mirror my website to a second server so if Server No1 goes down, i will be able to log-in server No2 and edit dns zone (a records) of the website and point a records to the mirror server.

So, is this a good way to do this thing i want? What else should i do? My main aim is to mirror website and if first server goes down, i will be able to edit dns zone and make my site working from mirroring server.

Reply With Quote
  #6  
Old 11-22-2010, 07:24 PM
yello yello is offline
Newbie
 
Join Date: May 2008
Posts: 22
Dear Vinayak_Sharma are you telling me to use two nameservers and not four? Is it for sure that i will have dns cache problem with 4 nameservers?

Reply With Quote
  #7  
Old 11-22-2010, 07:29 PM
F-DNS F-DNS is offline
Community Liaison
 
Join Date: Aug 2010
Location: /pub/bolton/uk
Posts: 3,158
Your idea is OK as far as it goes, but

1) You only need/want 1 nameserver on each server. Having more than 1 could result in more failed requests if one server is down.

2) The switch to server2 is not instant - Yes, as stated already, it's cached. So you'll need to reduce the TTL values for your A or CNAME records so that if/when you make a switch to server 2 the records are updated fairly quickly.

Is your site a static site, or a forum or something? If it's dynamic you'll also need to run a script to keep both copies of the site in sync.

Reply With Quote
  #8  
Old 11-22-2010, 07:56 PM
yello yello is offline
Newbie
 
Join Date: May 2008
Posts: 22
Yes i know how to mirror this dynamic website. I also know that i will have to reduce TTL for a records to take effect.

My main question was if the two nameservers will keep working instantly as the other two will be down. Is it better for me to reduce nameservers to two instead of four? If i reduce them to two, won't i have dns cache issue?

Reply With Quote
  #9  
Old 11-22-2010, 08:07 PM
F-DNS F-DNS is offline
Community Liaison
 
Join Date: Aug 2010
Location: /pub/bolton/uk
Posts: 3,158
There's no point to having 2 nameservers on one server. If that server is down, both nameservers will fail. Imagine if your server1 is down and someone tries to go to your site, making NS requests in the order NS1, NS2, NS3 - that's 2 failed requests instead of one from server1 before server2 gets asked.

You asked earlier "Does it work instantly or is there any dns cache anywhere affecting it?" which is why I mentioned TTLs. The ISPs of the visitors to your site will be cacheing the info. Shortening the TTLs now will reduce the time server1's IP is stored at (most) IPSs before another lookup so that when you do have a failure and do your switch to server2, your visitors will start to land on server2 quicker, although still not instantly.

Reply With Quote
  #10  
Old 11-22-2010, 08:47 PM
yello yello is offline
Newbie
 
Join Date: May 2008
Posts: 22
ok then. i suppose there is a reason why i should keep TTL's high. Isn't there? If there is no reason, then why all have by default high TTls and not change them to low numbers?

Reply With Quote
  #11  
Old 11-22-2010, 09:03 PM
F-DNS F-DNS is offline
Community Liaison
 
Join Date: Aug 2010
Location: /pub/bolton/uk
Posts: 3,158
Sure there is. As it's a reasonably safe bet that the vast majority of web sites aren't going to switch between servers all the time, the TTL controls the time the lookup is cached by (say) your ISP. It saves them asking again every time someone else wants the IP address of that same web site.

So, taking the default cPanel/WHM TTL of 14400 as an example, that's saying "you should cache this for 4 hours" (4x60x60 seconds).

In your specific case you want the ISPs to ask you more often in case your web site's IP does change, so you might use a TTL of 900 (15 minutes).

That's fine in isolated cases, but imagine if ALL the millions upon millions of DNS lookups performed daily were suddenly told to do it again every 15 minutes instead of 4 hours. That's 16 times those millions upon millions

Reply With Quote
  #12  
Old 11-23-2010, 01:47 AM
ServerOrigin ServerOrigin is offline
Web Hosting Master
 
Join Date: Jun 2006
Location: NYC
Posts: 1,408
Quote:
Originally Posted by yello View Post
I will explain exactly what i want to do: I have 4 nameservers. 2 of them are in server No1 and the other two are in server No2. Website is hosted on Server No1. I am doing this because i would like to mirror my website to a second server so if Server No1 goes down, i will be able to log-in server No2 and edit dns zone (a records) of the website and point a records to the mirror server.

So, is this a good way to do this thing i want? What else should i do? My main aim is to mirror website and if first server goes down, i will be able to edit dns zone and make my site working from mirroring server.
To be honest, why host it at all? Why not just manage your DNS free at your registrar? If you're not doing AnyCast or anything complex then it may make more sense to manage it with your registrar directly since most provide that option free of charge. The registrar will normally provide faster DNS responses than going to your system. Even if it may be a negligible speed difference, you would likely have 4 real nameservers for better redundancy.

__________________
• ServerOrigin.Com • ethProxy™ DDoS Mitigation • Protect your current server in minutes! •
[Intrusion Detection • CDN • DDoS Protected VPS • DDoS Cloud Hosting • 99.99% SLA • AnyCast IP Services]
[Enterprise-Class DDoS Protection • Automated Datacenter Failover • Serving more than 1 million domains!]


Reply With Quote
  #13  
Old 11-23-2010, 02:50 PM
yello yello is offline
Newbie
 
Join Date: May 2008
Posts: 22
My domain names are registered through namecheap. I better trust my own servers for sure

I got the idea. Thank you all.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about washing machines... Frosty Web Hosting Lounge 53 07-13-2007 01:21 PM
Question about Virtual Machines AbbasJaffarali VPS Hosting 6 05-26-2006 07:25 AM
Question on Buisness Copy Machines... Neil V Web Hosting Lounge 1 10-21-2005 04:55 PM
Bandwidth Question with 2 Machines xp101 Hosting Security and Technology 1 02-29-2004 04:06 PM
question about fax machines New1 Web Hosting Lounge 7 11-17-2000 04:10 PM

Related posts from TheWhir.com
Title Type Date Posted
MidPhase Launches Line of Managed Cloud Servers Web Hosting News 2013-05-15 13:47:19
Canada Withholds Megaupload Servers from US Authorities Web Hosting News 2013-01-17 15:58:40
Web Host MTL Servers Launches Shared Cloud Hosting, Cloud Servers Web Hosting News 2012-07-12 14:39:19
Cloud Management Firm ScaleXtreme Supports Windows Azure Virtual Machines Web Hosting News 2012-06-07 10:30:05
Web Hosting Sales and Promos Roundup - December 16, 2011 Web Hosting News 2011-12-16 17:40:38


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?