who created a zone via "domain pointer"?

artichoke

Verified User
Joined
Jan 23, 2006
Messages
43
Location
San Jose, California, USA
When a user creates a domain pointer, Directadmin will add a DNS zone for the domain. This zone does not appear in the reseller's "Show/Modify Users" screen or on the admin's "Show All Accounts" screen.

The admin can see the zone on his "DNS Admin" screen, but this too does not show which user created the DNS zone. Not does /etc/named.conf tell us who created the zone.

How would one track down who created this zone, except for logging in as each user one by one and doing an exhaustive search? A day might come when we are cleaning up DNS files, and we would want to quickly figure out who created which DNS zone.

Rahul
 
Assuming that tracking down the creator of a zone file does indeed require an exhaustive search, a possible fix is for Directadmin to always insert a comment line at the beginning of a zone file documenting which user belonging to which reseller belonging to which admin created it and when.

Rahul
 
artichoke,

Domain pointers create a symbolic link in /etc/virtual.

For example if you find a link in /etc/virtual:

pointer.example.com -> example.net

then you can do:

# ls -al /home/*/domains/example.net

which wil tell you the username.

Jeff
 
Never mind, the solution was easy. I added scripts into /usr/local/directadmin/scripts/custom that will keep track who creates a domain or domain pointer. The essential line of sh code in domain_pointer_create_pre.sh was as simple as:

cd $DIR && echo "$username" > "$from"

Rahul
 
Back
Top