The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    0
    Trophy Points:
    16
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    What shell command could I use to check this? Thanks. :)
     
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  3. rlshosting

    rlshosting Well-Known Member

    Joined:
    Apr 23, 2009
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Main Account Domains but Thank you for your answer!
     
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    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
    
     
Loading...

Share This Page