Is there a way for me to type a domain/subdomain/addon domain/parked domain in ssh and it tells me the username of the account it belongs to?
For example, if I typed this..
It would return something like this...
Then I would be able to make another query which allows me to make changes to /home/joebloogs
The issue I have is that I have a really nice bash script for something else, but I have to know the username first before I can execute it and the only ay to do it is to open WHM » Home »Account Information »List Subdomains ,t hen do CTRL + F to find the domain and see who owns it.
So would make my life easier if I could just type the domain name in the script and then execute what I need.
For example, if I typed this..
Code:
# /root/querydomain.sh some_add_on_domain-com
Code:
# owner username for some_add_on_domain-com is: joebloggs
The issue I have is that I have a really nice bash script for something else, but I have to know the username first before I can execute it and the only ay to do it is to open WHM » Home »Account Information »List Subdomains ,t hen do CTRL + F to find the domain and see who owns it.
So would make my life easier if I could just type the domain name in the script and then execute what I need.