donkeyKICK
Verified User
- Joined
- Jul 24, 2007
- Messages
- 389
I was wondering if there is a list of all the virtual nameservers on the system. I can't seem to find who is using them and who isn't.
cd /usr/local/directadmin/data/users
for i in *; do echo "$i's nameservers:";grep -i 'ns[12]=' $i/user.conf | cut -d = -f2; echo; done
cd /usr/local/directadmin/data/users
for i in *; do if [ -e "$i/reseller.conf" ]; then echo "$i's reseller nameservers:";grep -i 'ns[12]=' $i/reseller.conf | cut -d = -f2; echo; fi; done