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!

Is there a script to show which reseller owns a domain?

Discussion in 'General Discussion' started by electric, Feb 3, 2006.

  1. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    737
    Likes Received:
    4
    Trophy Points:
    318
    I'm looking at modifying a script to show all @aol.com forwards on a server.. but I need to somehow figure out who is the reseller owner of any given domain. (Obviously, we don't want to be sending any email to the reseller's clients, etc...)

    Does anyone know if there is a whm script to show which reseller "owns" any given domain?

    ie:

    which_reseller($domain);

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    870
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    List accounts does...

    scripts2/listaccts
     
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Do you mean, which account owns which domain? If so, grep in /etc/userdomains and /etc/trueuserdomains. (Note that /etc/userdomains isn't kept readable, it reverts to being readable only by group periodically).

    To find which reseller owns the account that owns the domain, look in /var/cpanel for a file of the form resellername.acct - 'grep account /var/cpanel/*.acct' would work just fine!
     
    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