finding all domains hosted

Lem0nHead

Verified User
Joined
Nov 28, 2004
Messages
265
hello

does anyone know an EFFICIENT way to find all the domains hosted on my server?

by EFFICIENT I mean... reading less files or less lines...
a single text file with all of them would be nice ;)

that's to patch FormMail.pl @recipient_domains = (); and post it here

thanks
 
find /usr/local/directadmin/data/users/ -name "domains.list" -exec cat '{}' \; is a possibility
but i hope there're better ones ;)

Edit: should have another, because this one can't be accessible by all users
 
Last edited:
cat /etc/virtual/domainowners |more

Gives you a list of domain names and the username of the owner

cat /etc/virtual/domains

will give you a list of just domain names

this is for RH9, FC and CentOS
 
Back
Top