Announcement

Collapse
No announcement yet.

Sync DNS with cPanel Server

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sync DNS with cPanel Server

    i am setting up two servers, one with cPanel and one with interworx
    (would do all I-Worx, but unfortunately some people wont leave cpanel :( )

    so heres my question:
    both server will be running local DNS for the accounts they host
    is there any way to get the records from the cpanel server to be synced with the DNS records from the I-Worx server and visa-versa?

    the idea is to have my name servers as follows
    ns1.host.com --> I-Worx Server
    ns2.host.com --> cPanel Server

    this would make sure all records are on bother servers for redundancy etc..

    or am i better of setting it up as described, with no syncing, and just allowing NS1 to resolve the i-Worx accounts and letting NS2 resolve the cPanel accounts

  • #2
    You can't cross-sync DNS info so you're better off having each server do its own thing Talkingreef.

    Chris
    Chris Wells
    InterWorx L.L.C. | http://interworx.com
    InterWorx Control Panel

    Comment


    • #3
      thanks chris..

      so then i should ask..
      if i haev multiple servers some I-Worx, some cpanel, whats the best way to get all of there info together. i really dont want to have individual NS for each box ya know...

      i guess im just curious what solutions are out there for people in my situation, i know there has to be something, since hosting providers do this on a daily basis

      Comment


      • #4
        here is a better layout of the situation

        ok, so let me throw out a situation, as im looking for options to resolve a similir one.

        situation:
        im a reseller, i have 4 VPS servers, 3 Interworx, 1 cPanel
        there DNS does not talk/sync with each other.
        cPanel used BIND, interworx uses djbdns

        i want to provide ALL my customers with only 2 nameserver
        ns1.company.com
        ns2.company.com
        without manually updating DNS records everytime a customer adds a domain, subdomain, or multi hosted domain.

        is there a solution out there to accomplish this goal? as i cant seem to find the answer.

        Comment


        • #5
          Third party DNS management?

          Bind and djbdns use completely different ways if storing DNS the data, so as Chris sid they can't be synced.

          Comment


          • #6
            so how to hosts that offer all different types of servers, including cPanel and interworx offer only 2 name servers to there customers.

            if you know a third party service tthat will do something like this, let me know so i can check them out.

            it just boggles me that this is this difficult.. :(

            Comment


            • #7
              There are two ways that I am aware of:

              1. Third party (or at least separate server run by you) DNS managment where all DNS is controled through a single server but points to the IP's on different servers. The neg on this is that you have to manually make DNS changes on the main box

              2. Each box has it's own nameservers

              ns1 and ns2 for one box
              ns3 and ns4 for another

              etc

              Neither is ideal, but then in an ideal world everyone would be using InterWorx ;-)

              Comment


              • #8
                ok, how about this idea... i knwo you are not cPanel experts (well at elast not officially) so you dont have to comment on those specifcs

                but lets say i get to 4 Interworx and 3 cpanel.

                i set all the I-Worx server to sync together (pretty sure this is possible)
                i set all the cPanel servers to sync together (pretty sure this is possible)

                then ns1 to poitn to one of the i-worx boxes and ns2 to point to one of the cpanel boxes, think that will work?

                Comment


                • #9
                  You *could* do something along the lines of this post:

                  http://www.interworx.com/forums/show...light=dns-sync

                  Which will query and "pull" the DNS from several IWorx boxes to a separate DNS server created and hosted by you (djbdns). It seems that you could create a similar script/sync that would query and pull all the DNS records from your other boxes to a central source as well (whether using bind, or whatever).

                  JB

                  Comment


                  • #10
                    Originally posted by Talkingreef
                    ok, how about this idea... i knwo you are not cPanel experts (well at elast not officially) so you dont have to comment on those specifcs

                    but lets say i get to 4 Interworx and 3 cpanel.

                    i set all the I-Worx server to sync together (pretty sure this is possible)
                    i set all the cPanel servers to sync together (pretty sure this is possible)

                    then ns1 to poitn to one of the i-worx boxes and ns2 to point to one of the cpanel boxes, think that will work?
                    How DNS works is that you have to specify to nameservers per domain for redundancy. It the resolver (your ISP's dns server) fails to connect to NS1 for some reason or it takes two long it contacts NS2 which in this case wouldn't have the data on NS2 so you would get errors quite often.

                    Your best bet is probably to try to do what JB suggested.

                    Comment


                    • #11
                      ok, so my best option woudl be to sunc the DNS on all my I-Worx servers using the method in from that link. if i understand it, i can do this with just 2, 3, or more I-Worx server and it should "require" a additional server just for DNS.
                      then i can provide all my I-Worx customers with ns1 and ns2

                      then i can just use the DNS clustering on cPanel and provide all cPanel customers with ns3 and ns4.

                      am i accurate here?

                      Comment


                      • #12
                        I'm unfamiliar with how the DNS clustering on cPanel works, can't speak much to that process.

                        As for DJBDNS (and therefore IWorx), you can use the instructions from the dns-sync link to pull the records from any other 1+ DJBDNS servers (up to however many you wish to handle) to your new/external DJBDNS server. That singular external DJBDNS conglomerate server created by you could be the "ns2" for all of your IWorx customers (assuming it had one public IP, "ns1" could remain their original IWorx box).

                        It's also nice that the above mentioned sync also allows for a section of static dns entries for your own manual DNS pleasure, should you wish (that won't get overwritten by the auto-dns-sync process).

                        I'm currently using this method and can vouch that it works with zero future intervention once it's setup and running.

                        JB

                        Comment


                        • #13
                          There should be some sort of lite version of InterWorx just for setting up a slave nameserver on an external machine or a VDS. That would be cool ;/

                          Comment


                          • #14
                            Originally posted by sliqua
                            There should be some sort of lite version of InterWorx just for setting up a slave nameserver on an external machine or a VDS. That would be cool ;/
                            Creating a special version of Iworx for dns management only would be kind of overkill, I think.

                            You can just set up a box with djbdns on it and set the other boxes to sync with it, but this would only work with iworx or other boxes using djbdns.

                            http://www.interworx.com/forums/show...light=sync+dns

                            Are you suggesting some sort of web interface for this? If so I'd take a look for a freeware/shareware web interface for DJBDNS for the dns box created in the above how to. A DNS syncing interface will be comoming out of Beta in the next release.

                            Comment


                            • #15
                              Hi All,

                              Apologies for reviving a dead post but I am just about to start my web hosting company but now that cPanel has thrown a spanner in the works with their licensing, I am going to want to have the same setup as Talkingreef did all those years ago and still 13 years on there is still no answer to this anywhere on the internet except for a small section on i-Worx page here, https://www.interworx.com/support/fa...rx-dns-server/

                              Has anyone tried the above and got it working properly?, basically, I want to be able to host customers on Interworx and cPanel and only have two DNS servers two serve up requests regardless of hosting panel.

                              Comment

                              Working...
                              X