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.

/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:
    621
    Likes Received:
    6
    Trophy Points:
    18
    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
     
    #1 postcd, Mar 1, 2016
    Last edited: Mar 1, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    670
    Trophy Points:
    113
    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.
     
Loading...

Share This Page