I have a Linux-based reseller hosting account (WHM and cPanel) that has worked perfectly for the past four years for several hundred of account creations. I host the main domain on the same server as the new accounts I'm creating and the new accounts are always initially created as subdomains of that domain. Within the last week or two, the following problems started happening:
- When a new account is created, it had always been accessible IMMEDIATELY after creation. As of the past week or so, it can take anywhere from 15 minutes to several hours for the site to become accessible.
- Once the site does resolve, it can only be accessed using the subdomain name WITHOUT the 'www' on the front of the address. If you add 'www' to the address, it returns a page not found error. There is a 'www' cname record created in every new accounts DNS by WHM and it appears in the zone editor to look the same as previously-created (working accounts).
- I created a Perl script that calls the LWP module to read in a test HTML page on the same account. It works fine on older existing accounts, but on these new accounts, it can't find the test page even though it exists under the same web site that the script is running on. The call to LWP Get returns an error 500, "bad hostname" message and lists the very subdomain it's running under, which I can clearly access from my browser.
Anyway, I've attempted to troubleshoot this with my server provider, but for four days they keep telling me they've check the DNS and it looks correct, so it can't be a DNS issue. That's all fine, but they also aren't working on fixing anything that causes the problem when a new account is created.
I'm at a loss, but right now I've had to suspend taking on new customers as I can't reliably create new accounts. Does anyone have any ideas what these symptoms might point to, or has anyone had a similar experience to this?
Thanks in advance for any insights anyone can offer.
>>1. Whether the domain you created is already pointed to the name servers <<
The new (problem) accounts are all subdomains of a main domain I own and have parked on that server. The main domain has been pointed to the namesevers for some time, well before the problem started, and hasn't changed. My new accounts are never created with a top-level domain name, always a subdomain.
>>2. Whether your zone file is created correctly after domain creation<<
I've tried to do a DNS lookup on the new subdomains after I create them. Normally, their A record is there and looks correct. But if I query for the CNAME records (looking for the www record), there's no answer section in the results. If I view the DNS for the account in WHM, it shows all records fine, but perhaps WHM is not viewing the actual zone files but it's own private database used to create the zone files? (I really don't know).
The weird part is that this all used to work fine and just started being a problem recently. Prior to last week, all new subdomain accounts were always available immediately and worked with 'www'.
It ended up being a server DNS problem. I don't know exactly what was wrong, but last night the server provider responded that they had done a complete reconfiguring of the DNS system on that server and now new accounts are immediately available and work with 'www' again. Strange, but at least it's working again.