Web Hosting Talk







View Full Version : Issues with having two reseller accounts


midwestmerchant
04-17-2008, 02:37 PM
I hope this isn't too confusing and I really hope someone here can help me :(

Let me explain the issue.

A while back I created a reseller account with my favorite host. I received my login information and put my site up and started getting clients. Things were going very well. Then I thought to myself, let me add a new reseller account for some adult site's my clients want to host with me.

Next, I went and purchased a new reseller package in hopes to add it as a second server to my WHMCS.

The server got setup and then comes the tricky part, nameservers! I had them setup my new custom nameservers on my new reseller package (ns3.mydomain.com and ns4.mydomain.com)

I created a test account noticed the page would never load and the new nameservers would never be reachable. My host tells me I need to add these new nameservers onto my hosting domain, so I do so. I give them a while to propogate and they do.

Now I notice when visiting my hosting domain it seams to pick and choose between ns1, ns2, ns3, and ns4. This causes major problems because my web hosting site is not hosted on both reseller accounts, only the first.

Am I doing something wrong here? Is this not possible? The whole purpose of my second reseller account (using ns3 and ns4) is just to simply host a different batch of clients.

midwestmerchant
04-17-2008, 04:12 PM
Ok after doing some reading this is what I have come up with:

Go into my domain registrar (dynadot) and goto the nameservers. Use the setting:
Dynadot DNS
Use our name servers, but specify your own DNS record.
It then asks for IP, I put the IP of my first reseller in there.
next it gives a bunch of areas for subdomain : IP..I put each of my nameservers in there.

Finally, I have contact my main reseller and asked them to set the A record in my WHM to point to the IP of my second reseller.

Am I missing anything here? Do I need to create any subdomains? If so, what reseller package do I do that on and whom do I give that information to?

Thanks!

midwestmerchant
04-17-2008, 05:29 PM
well I am getting closer. After doing this site's on both servers will load..however when visiting my main hosting domain sometimes it will load the site (obviously using ns1/ns2) and sometimes it will just give me a page cannot be displayed which is weird because I have a small test page up on my 2nd reseller server, so if it were using ns3/ns4 I would think that test page would come up..Although site's on my 2nd server are loading fine and so are the site's on my main reseller. I can only seam to make the "page cannot be displayed" happen when it is my main domain.

any thoughts guys?

foobic
04-17-2008, 07:53 PM
If you're going to use the nameservers on both servers for any domain (including your own) then you must synchronize the dns records for that domain. ie. If you have example.com delegated to ns1, ns2, ns3 and ns4.example.com then you'd better be sure that all of those nameservers return the same information.

If you don't want the hassle of syncing dns, the easy option is to delegate your own domain only to ns1 and ns2. Make sure you still have ns3 and ns4 defined as A records pointing to the IPs of the other server and registered as nameservers with your registrar, but only delegate your domain to ns1 and ns2. Then when you create a new account on server1, use ns1 and ns2. For a new account on server2 use ns3 and ns4.

Or for best reliability use all 4 nameservers and keep the records in sync, with A records for each domain pointing to one server or the other (or both, together or with failover) but all that requires a bit more work...

PremiumHost
04-17-2008, 08:46 PM
I think it's not possible to keep records in sync automatically because this is just reseller account on different servers.
The domain must point to the correct nameserver or it will not be resolved properly.
Domain abcd.com is hosted on server B with nameserver ns3 & ns4
Dns resolver is not intelligent enough to ignore failed result in ns1 & ns2 and pick up ns3 & ns4
Your website will be randomly inaccessible even with only one failed nameserver.

foobic
04-17-2008, 10:10 PM
I think it's not possible to keep records in sync automatically because this is just reseller account on different servers.
It is possible for a typical CPanel/WHM reseller account under certain circumstances. Specifically, the host needs to allow zone transfers and zone updates through WHM using the CPanel API (both are allowed by default).

The domain must point to the correct nameserver or it will not be resolved properly.Domain abcd.com is hosted on server B with nameserver ns3 & ns4
Dns resolver is not intelligent enough to ignore failed result in ns1 & ns2 and pick up ns3 & ns4
Your website will be randomly inaccessible even with only one failed nameserver.Fails aren't really the problem - if one nameserver is down or unreachable then the resolver will go on to try the next. The problems happen when you get a successful lookup that gives conflicting data - the resolver can go to any of the delegated nameservers and it has no way to know if one of them gives it the wrong information.

midwestmerchant
04-17-2008, 10:56 PM
A big thanks to the smart and educated foobic who worked with me one on one via PM to get this working. Thanks so much foobic!!

Also a big thanks to premiumhost for responding to my PM with some advice and help on this situation. Wish we could give rep here because both of you deserve it!