Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How many domain names on the server?

Discussion in 'General Discussion' started by rlshosting, Jan 19, 2011.

  1. rlshosting

    rlshosting Well-Known Member

    Joined:
    Apr 23, 2009
    Messages:
    170
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    What shell command could I use to check this? Thanks. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    DataCenter Provider
    Subdomains? Addon domains? User accounts?


    All domains including parked/addon/sub:

    Code:
    cat /etc/userdomains|wc -l
    Main account domains only:


    Code:
    cat /etc/trueuserdomains|wc -l
    DNS zones on the server (may be inaccurate as could contain old domains or zones from other clustered servers):

    Code:
    ls -l /var/named/*.db|wc -l
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rlshosting

    rlshosting Well-Known Member

    Joined:
    Apr 23, 2009
    Messages:
    170
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Main Account Domains but Thank you for your answer!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    458
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider

    I normally use this one to check main domains/total accounts on the server.

    Code:
    cat /etc/domainusers |wc -l
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice