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

    Oct 22, 2010
    Likes Received:
    Trophy Points:

    i found there is usefull script /scripts/whoowns

    Which returns cpanel username who owns the domain

    That script contains link to /etc/userdomains which contains like:
    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

    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 Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    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...

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