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 to get a domain list from a shell

Discussion in 'General Discussion' started by Tximis, Sep 13, 2005.

  1. Tximis

    Tximis Member

    Joined:
    Apr 8, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    Is there any script to fetch a list of hosted domains? Similar to the option "Fetch CSV" via WHM but from command line.

    Thanks!
     
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    Hello,

    You can find out the information with the help of following command. It will lists all domains including subdomains

    cat /etc/localdomains | less
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Tximis

    Tximis Member

    Joined:
    Apr 8, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    bijo thanks for the tip but I am searching a scripts that generates a output in CSV format, including reseller name, username, quota, disc space, etc.. similar to "Fetch CSV" option in the "List Accounts" section.

    Regards
     
  4. richy

    richy Well-Known Member

    Joined:
    Jun 30, 2003
    Messages:
    276
    Likes Received:
    1
    Trophy Points:
    168
    Have a look at /var/cpanel/users/* which may be a good starting point.
     
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