Option to search by domain name

hostpc.com

Verified User
Joined
Aug 2, 2003
Messages
1,178
Location
Schenectady, NY
As an admin, it's not always easy to remember the username for a domain, especially when there's over 100 per server. Are there plans for a search by domain name ? It'd make it real easy to suspend/edit/modify on the fly.

Just thinking out loud - after a couple solid weeks using this, these are things that have come up in our discussions.

Joe
 
While DA has no option to do this (and in fact it may not be easy for DA to do it, since DA doesn't use databases to keep track of it's own state), if you're the admin and can log in to your system as a shell user, this command will give you a list of domains and usernames (in ls -al format):

# ls -ald /home/*/domains/*

(There will be some non-domain answers as well, but all-in-all, this gives you a pretty good list.)

A perhaps less definitive list can be found by:

# grep ServerName /usr/local/directadmin/data/users/*/httpd.conf

Neither of this will just give you a simple list, but a bit of perl manipulation of this output will give you the list you need, or you can just look at the output and visually grep out what you need.

You can even create a cron job to run this command every night as root, and email you the output.

Until we get a better way from the DA staff.

Jeff
 
I just found the file containing this information; it's readable by anyone with shell access.

$ cat /etc/virtual/domainowners

Jeff
 
Hello,

Yes, those methods are both valid, you can also get a domain/username listing in the custom httpd.conf feature.

Admin Panel -> Admin Settings -> Customize Httpd Configurations

then you can use the "Advanced Search" to narrow it down on a per domain or user basis.

John
 
Thanks, John.

How about giving us a way to get a list of email addresses of our users:

1) at the admin level, of all the resellers on the box

2) at the reseller level, of all the domain owners on the box

3) at the user (domain owner) level, of all the mailboxes at that domain

This would be very useful in case it became necessary to send everyone an email.

Thanks.

Jeff
 
Back
Top