Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible/recommended for two servers to use the same name servers?

For example, if I have two VPS servers; one for business one for personal. Can they both use the same name servers? Note: these would be cPanel VPS.

cPanel allows setup of name servers for domain name.

share|improve this question
22  
If all my servers had to use different unique nameservers, I'd be a little bit screwed. –  Tom O'Connor Aug 4 '11 at 20:31
19  
@Tom - imagine the environmental damage if it was a 1-DNS-server-to-1-client ratio - the world would look like something from the matrix –  Chopper3 Aug 4 '11 at 20:40
7  
@Chopper3 - We'd all just revert back to downloading and using THE hosts file. –  voretaq7 Aug 4 '11 at 20:43
10  
@Answerers: Nice gravatars, guys. Bunch o' Chopper slappies! –  squillman Aug 4 '11 at 20:44
4  
@NARKOZ: I've got no idea what you're talking about; they're different. –  MikeyB Aug 5 '11 at 12:37
show 7 more comments

13 Answers 13

up vote 29 down vote accepted

If they can both see the name servers in question (i.e., not on an internal network to one of them)...sure.

share|improve this answer
    
This would be the major consideration - also many ISP's DNS servers these days only answer recursive requests from "authorized" clients (machines on a network they were set up to serve) to avoid DNS cache poisoning attacks and ungrateful bandwidth/resource moochers using the service for free. –  voretaq7 Aug 4 '11 at 21:06
add comment

A large proportion of the internet uses the Google name servers 8.8.8.8 and 8.8.4.4 so yes.

share|improve this answer
10  
Delicious google name servers –  Nixphoe Aug 4 '11 at 21:24
add comment

Yes - this is how the internet works.

share|improve this answer
add comment

Indeed, name servers are hearty things that can handle one, two or even three concurrent connections at a time. I think you're safe in using one name server for both VPSs.

share|improve this answer
add comment

Certainly!

If each server needed a server of its own, you'd end up with a horrific sort of pyramid scheme where the servers at the bottom wouldn't have any servers to call upon.


Edit: fixed avatar

MikeyB

share|improve this answer
4  
If you provide DNS service to 5 friends, and they provide DNS service to 5 of their friends… –  voretaq7 Aug 4 '11 at 21:07
7  
Downvoted for inappropriate avatar. Succumb to the hivemind and you'll live. –  Wesley Aug 4 '11 at 21:07
1  
Conformity is sooooo much better, don't you think? –  Holocryptic Aug 4 '11 at 22:48
    
I like that avatar! Have an upvote... –  Bart Silverstrim Aug 5 '11 at 2:20
add comment

Yes, this is the way it is designed to work, otherwise there would be as many name servers as there were sites.

share|improve this answer
add comment

There is absolutely nothing wrong with having more than one client performing lookups against the same server. Just make sure the DNS server is adequately sized to support the load.

share|improve this answer
add comment

There isn't a problem with doing that, it'll work fine.

share|improve this answer
add comment

Yep. This is how "normal" networks are setup.

share|improve this answer
add comment

YES!

A whole bunch of my servers all use the same nameservers.

share|improve this answer
add comment

Two independent name servers seems to be considered sufficient variety. How many computers use the same two name servers seems to be of little consequence. As long as you have two independent sources in different physical whereabouts and dependent on different networks you can attach about as many "clients" as you like. In fact half the world seems to be able to use the same two name servers, there is no reason two servers couldn't :)

share|improve this answer
4  
Where's your Choptar? –  Chris S Aug 4 '11 at 23:20
5  
Don't tempt the Coppertar minions. We know bear-fu. –  Wesley Aug 4 '11 at 23:37
add comment

You can surely setup your name-servers in one server and use the same for the other using the cpanel inbuilt DNS Cluster feature( WHM >> Cluster/Remote Access >> Configure Cluster). But, It is better if you,

  1. Configure nameservers as,

    ns1/ns2.yourdomain.com --> server 1

    ns3/ns4.yourdomain.com --> server 2

  2. Cluster the DNS using the DNS Cluster option in your WHM.

  3. Use these four nameservers for your domains at your registrar.

By this way, if one of your nameserver server fails, the other will successfully serve for DNS requests(ofcourse there is no use, if the whole server is going to fail, unless you have proper mechanisms configured to handle such instances in place).

DNS Clustering Doc: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/ConfigureCluster

Cheers

share|improve this answer
add comment

Most of the hosting companies use the same ip for their lots of servers. It all depends on the nameservers and their correct configuration.

However, i guess having more nameservers will not complicate request loads on the server and blocking it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.