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!

/etc/userdomains how frequently is it updated, contains all domains?

Discussion in 'General Discussion' started by postcd, Mar 1, 2016.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    692
    Likes Received:
    14
    Trophy Points:
    68
    Hello,

    i found there is usefull script /scripts/whoowns domain.name

    Which returns cpanel username who owns the domain

    That script contains link to /etc/userdomains which contains like:
    username1: domain.name
    uisername2: domain.name2

    i wanted to ask if that /etc/userdomains is always up to date and if it really contains all domains?

    Im asking because if i remember correctly (i may not) I think that when i accessed WHM / Account information / List Subdomains
    i could not find some domain even it was hosted on the server

    I also used /usr/local/apache/domlogs/$cpanelusername/ as a source for the user domains, but there im also not sure if it contains everything, probably not

    /etc/userdomains appears to be better way to get user domains:
    grep ": cpanelusernamehere" /etc/userdomains | cut -d: -f1

    Thx
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 postcd, Mar 1, 2016
    Last edited: Mar 1, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, this file is updated whenever a new domain name is added, and it includes all of the domain names on your system.

    Thank you.
     
    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