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.

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:
    697
    Likes Received:
    1
    Trophy Points:
    18
    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!
     
  2. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    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:
    38
    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!
     
Loading...

Share This Page