Results 1 to 11 of 11
  1. #1
    Join Date
    Oct 2009
    Location
    Kuala Lumpur
    Posts
    77

    DNS server question

    How can i create one DNS for multiple servers?

    Just say I have 5 dedicated server with cPanel. Each dedicated server have its own IP address and each server have 100 websites hosted. so i have total 500 websites in this 5 dedicated severs. Now my question is how can I setup only one DNS for all this 5 Servers?

    For example:
    ns1.domainname.com IP: XXX.XXX.XXX.1
    ns2.domainname.com IP: XXX.XXX.XXX.2

    How can i setup this DNS in all 5 servees and they will work perfectly. I saw Shared hosting companies are doing this. No metter which server you buy, You just setup there one default DNS and you are pointimng to your server.

    Please discribe.

    Thanks
    Consultant, Digital marketing at "Ariyes Online Sdn Bhd" - Malaysia based IT service provider

  2. #2
    Join Date
    Aug 2014
    Location
    Manchester
    Posts
    69
    not clear question..
    DNSs should be at least two!
    For each website you have many records(A,MX,etc) that point to the server where the website is hosted

    the web server will recognize the http get and associate the right website

  3. #3
    Join Date
    May 2012
    Location
    Linux World
    Posts
    1,137
    Please read more on DNS clustering, you can add the 4 servers to the DNS cluster. Read more on cPanel DNSONLY
    Kevin Cheri : Senior Server Administrator / Freelancer : 13+ years Exp, reach me out for any help
    Server Optimization Expert / Mysql Guru / Migration Specialist
    Skype : lynxmaestro
    Gmail : cheri.kevin@gmail.com

  4. #4
    Join Date
    Jul 2005
    Location
    here, there, where?
    Posts
    4,101
    For cPanel, check https://documentation.cpanel.net/dis...Configurations . You will want to have at least two separate nameservers and it is best for them to be geographically different so that if one goes down, the other is responding. You might be able to use 2 of those 5 servers you have, however, I would recommend using a cpanel DNS only install on a 2 VPSes for example at different datacenters to reduce dependency.
    -Steven | Cooini, LLC
    "It is the mark of an educated mind to be able to entertain a thought without accepting it" -Aristotle

  5. #5
    Join Date
    Oct 2009
    Location
    Kuala Lumpur
    Posts
    77
    Maybe i coudent explain properly. Ok Let me try again. First of all I am very newbie about DNS staffs.


    My question is: Just say I have 5 dedicated cPanel servers. this 5 Servers have 5 dedicated IP addreses. I want to make only 2 DNS (ns1.domain.com and ns2.domain.com) for all this 5 Servers. How can i do That?

    I don't want to make seperate DNS for every server. I just want 2 DNS which will point all this 5 Servers.

    if you can discribe step by step that will be grate.

    Thanks in advance.

  6. #6
    Join Date
    Mar 2012
    Posts
    833
    DNS cluster should help you. Here is documentation url for it.

    https://documentation.cpanel.net/dis...LD/DNS+Cluster

  7. #7
    Join Date
    Jul 2005
    Location
    here, there, where?
    Posts
    4,101
    Quote Originally Posted by GoGetSpace View Post
    My question is: Just say I have 5 dedicated cPanel servers. this 5 Servers have 5 dedicated IP addreses. I want to make only 2 DNS (ns1.domain.com and ns2.domain.com) for all this 5 Servers. How can i do That?

    I don't want to make seperate DNS for every server. I just want 2 DNS which will point all this 5 Servers.
    .
    The DNS clustering option I had mentioned allows you to do that. You put in the DNS clustering options as described in the documentations in to each server after you have setup the two or more nameservers.
    -Steven | Cooini, LLC
    "It is the mark of an educated mind to be able to entertain a thought without accepting it" -Aristotle

  8. #8
    Join Date
    Oct 2009
    Location
    Kuala Lumpur
    Posts
    77
    Ok here is what I did. I have a domain in GoDaddy. I create two host names with the following IPs in the godaddy domain setting page.

    Ns1.yourcaffe.com (64.182.235.160)
    Ns2.yourcaffe.com (64.182.235.174)

    Now I create two cpanel DNS only server (VPS) with those two IP 64.182.235.160 And 64.182.235.174.

    Then I logged in to those DNS servers and enable DNS cluster.

    Then I logged in to my main web server (another cpanel server with full license, located in a different datacenter) and add a hosting account for a different domain name www.travelqa.com. FYI this domain also registered in godaddy and I setup NS for this domain as flowing :

    Ns1.yourcaffe.com (64.182.235.160)
    Ns2.yourcaffe.com (64.182.235.174)

    Please note that this main server is in a different data center and my two DNS only server is in another datacenter.

    Now I add this two DNS only server in the main server DNS cluster section. Then I try to load the domain www.travelqa.com and it's loading fine.

    Well up to this everything is fine, but the confusion start to create when I turn off (complete power off) those two DNS server and reload the domain www.travelqa.com in the browser, it's still loading!!! First I was confused, I thought maybe chacha, so I clear the browser. But no it's still loading. And now after two days it's still loading.

    I don't know how and why this website still working when I turn off both the DNS server and this domain using NS which IP address is from those DNS servers

    I still didn't get it, but I know I am doing something wrong.

    Please guide me where I am wrong.

    Thanks

  9. #9
    Join Date
    Jul 2005
    Location
    here, there, where?
    Posts
    4,101
    Looks like the ns1 is still responding where as ns2 isn't. As such, ns1 will still provide results.

    Code:
    $ nslookup travelqa.com 64.182.235.160
    Server:		64.182.235.160
    Address:	64.182.235.160#53
    
    Name:	travelqa.com
    Address: 23.111.153.122
    
    $ nslookup travelqa.com 64.182.235.174
    Server:		64.182.235.174
    Address:	64.182.235.174#53
    
    ** server can't find travelqa.com: REFUSED
    Also, it is best practice to have the nameservers on at least different networks and even better to be geographically separate where as those two are on the C range and likely the same datacenter / network.
    -Steven | Cooini, LLC
    "It is the mark of an educated mind to be able to entertain a thought without accepting it" -Aristotle

  10. #10
    Join Date
    Oct 2009
    Location
    Kuala Lumpur
    Posts
    77
    Ok i have solve this issue, Now my question is Do I need to Synchronize the DNS servers and Main servers Both way? Or I can do it only one way, like I added DNS cluster in Main server and set that to Synchronize Changes Mood, but I didnt add anything in cPanel DNS only Server. I just Enable the DNS cluster in cPanel DNS only servers.

    What if i do both way Synchronize and what if its only one way Synchronize?

    Regards

  11. #11
    Join Date
    Jul 2005
    Location
    here, there, where?
    Posts
    4,101
    The main servers should sync to the nameservers running in DNS only.
    -Steven | Cooini, LLC
    "It is the mark of an educated mind to be able to entertain a thought without accepting it" -Aristotle

Similar Threads

  1. DNS server question
    By ROSSLO in forum VPS Hosting
    Replies: 5
    Last Post: 04-04-2010, 07:11 PM
  2. Godaddy DNS server question?
    By coralnutz in forum Domain Names
    Replies: 3
    Last Post: 10-01-2006, 11:35 PM
  3. DNS Server Question
    By canfone in forum Dedicated Server
    Replies: 1
    Last Post: 03-02-2004, 06:10 AM
  4. DNS server question
    By LindonNetworks in forum Hosting Security and Technology
    Replies: 1
    Last Post: 06-06-2003, 11:17 PM
  5. Quick DNS server question
    By nmluan in forum Web Hosting
    Replies: 3
    Last Post: 04-29-2003, 08:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •