Problem with a hosting account and domains

Daniel15

Well-Known Member
Oct 7, 2006
86
1
156
Palo Alto, CA (originally Melbourne, Australia)
cPanel Access Level
Website Owner
Twitter
Dissapearing domains on a reseller account

Hi everone,
I've been having a problem with a user's domains dissapearing from their reseller account. Here's what they said to me (with some information removed):
Hello,

After a few problems with [site name]'s MyTopix forum, I was going to change the account so that http://[domain].info was parked on top of http://[domain].org instead of the other way around. However, upon doing that, I receive the following:

Domain Modification [domain].info -> [domain].org

Modifing httpd.conf
Modifing proftpd.conf
Modifing valiases
Adding dns entry
Sorry, a DNS entry for [domain].org already exists, please delete it first


However, [domain].org is not listed in my DNS entries, and the [domain].info nor [domain].org are visible in the 'List Accounts',

In addition, the domain [domain].info does appear in 'Modify an Account' so I tried to change the domain to 1.[domain].info. Upon attempting this, I find this error:


Domain Modification [domain].info -> 1.[domain].info

Modifing httpd.conf
Modifing proftpd.conf
Modifing valiases
Adding dns entry
Bind reconfiguring on protious using rndc


Created DNS entry for 1.[domain].info


Done
Removing old dns entry
[domain].info -> deleted from protious.
Done
Adding localdomains entry
Modifing vfilters
Setting up frontpage
No Server found



Is there a reason why I no longer have full access to this account, as well as why I can't park the domain? I also seem to remembering this happen once before, except I lost full control of the account and not partial.
Their accounts don't appear even under the root 'List Accounts'. However, the entries are still in named.conf:
Code:
zone "[domain].org" {
        type master;
        file "/var/named/[domain].org.db";
};


zone "[domain].info" {
        type master;
        file "/var/named/[domain].info.db";
};
And both zone files are valid:
Code:
; cPanel 10.9.0-CURRENT_94
; Zone file for [domain].org
$TTL 14400
@      86400    IN      SOA     ns1.cwhnetworks.com. knskater125.gmail.com. (
                2006121101      ; serial, todays date+todays
                86400           ; refresh, seconds
                7200            ; retry, seconds
                3600000         ; expire, seconds
                86400 )         ; minimum, seconds

[domain].org. 86400 IN NS ns1.cwhnetworks.com.
[domain].org. 86400 IN NS ns2.cwhnetworks.com.

ns1.[domain].org. IN A 75.126.41.160
ns2.[domain].org. IN A 75.126.41.160

[domain].org. IN A 75.126.41.160

localhost.[domain].org. IN A 127.0.0.1

[domain].org. IN MX 0 [domain].org.

mail IN CNAME [domain].org.
www IN CNAME [domain].org.
ftp IN CNAME [domain].org.

Additionally, the virtual host is still listed in httpd.conf:
Code:
<VirtualHost 75.126.41.160>
ServerAlias [domain].org
ServerAdmin [email protected][domain].org
DocumentRoot /home/[username]/public_html
BytesLog domlogs/[domain].org-bytes_log
User [username]
Group [username]
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled [username]
</IfModule>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/[username]/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/[username]/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
ServerName www.[domain].org



User [username]
Group [username]
CustomLog /usr/local/apache/domlogs/[domain].org combined
ScriptAlias /cgi-bin/ /home/[username]/public_html/cgi-bin/
</VirtualHost>
Even so, WHM doesn't list the account under 'List Accounts'. What's the best way to fix this?

Thanks.
 
Last edited:

Daniel15

Well-Known Member
Oct 7, 2006
86
1
156
Palo Alto, CA (originally Melbourne, Australia)
cPanel Access Level
Website Owner
Twitter
Are they listed in root's WHM List Accounts? If so, try changing the ownership (click on pencil next to reseller name in List Accounts) back to the reseller and see if that resets things enough to get the reseller to see the account.
The account isn't even listed in the root WHM...
...Their accounts don't appear even under the root 'List Accounts'....
Thanks, though. Any other ideas?
 

adept2003

Well-Known Member
Aug 11, 2003
283
0
166
~ "/(extra|special)/data"
Could try this:
  1. Download a full site backup of the affected account.
  2. Delete the account (& don't tick "keep dns records").
  3. Ensure that no entries exist for it in the files you've already listed above.
  4. Delete any db file or directory that refers to the site in "/var/named/"
  5. Do a full restore of the affected site from WHM.
  6. Repair mailbox permissions (& maybe sync dns records with rest of cluster).
 

mitul

Well-Known Member
Feb 8, 2003
291
0
166
Does that domain name exists in /etc/userdomains and /etc/localdomains file ??

You should also try running /scripts/updateuserdomains and check for any errors.
 

bizzy

Member
Nov 30, 2006
24
0
151
You should also try running /scripts/updateuserdomains and check for any errors.
Thank you - that rescued me from a similar ordeal. It pointed to a DNS link error in /var/cpanel/users/<username> or thereabouts. Re-instated and a dummy domain created in /var/named and an entry in /etc/named.conf. Re started BIND and ran /scripts/updateuserdomains again and up popped the account in the listing. Everything now appears OK.

Except the original reason for getting in the mess was that I did not want to run a DNS zone on this account. I have had no problem in deleting zones for parked domains - cannot it be done for base domain?

Again thanks.
 
Last edited:

chrisjs162216

Registered
May 9, 2006
2
0
151
While I had almost the same problem, I did find a fix that seemed to work. By running /scripts/killdns and then going to Add a DNS Zone in WHM, it seems to recreate it properly. That is, provided that the account is listed there...
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
6
168
Melbourne, Australia
cPanel Access Level
Root Administrator
Except the original reason for getting in the mess was that I did not want to run a DNS zone on this account. I have had no problem in deleting zones for parked domains - cannot it be done for base domain?
Perhaps not! But there are a number of other solutions. For instance, you could delete the zone manually. Or you could comment out the record definitions in the file and just leave the SOA.

So we can help more accurately could you remind me why you didn't want a DNS zone for the domain?
 

vinc_dc43

Well-Known Member
Jan 19, 2003
60
0
156
I found recently on a few domains i made manually and assigned to a reseller so that they coudl edit the DNS, after tranfering the accounts from their other server, that the process of adding a zone and assigning it to the resller then lead to a problem where the accounts would dissapear everytime updateuserdomains was run.

The fix was to remove the domains from the cpanel users account file for the reseller a thus removing the conflict.

Running the updateuserdomains then fixed the rest of set up files perfectly.
 

hromero

Member
Apr 3, 2007
6
0
151
Other Solutions!!

Thanks guys!!

I had the same problem but I add a entry in /var/cpanel/users/<user> like this in the last line:

DNS = dominio.com

and resolved!!!
Regards.. (Pardon if i had mistakes in English)

Gracias Señores,

Tuve el mismo probema pero lo resolvi colocando la siguiente linea en /var/cpanel/users/<usuario>:

DNS=dominio.com

Saludos.