Bulk redirecting domains

BlueCola

Verified User
Joined
Jan 12, 2012
Messages
75
Hi,

We have a client with more than 100 domains in their account. They asked us if there is a bulk option to redirect 99 of these domains to 1 of the other domains in the account. There is no such option in the interface, but perhaps someone here has a smart idea on how to do it through the shell?

Looking forward hearing your thoughts, thanks!
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,094
Location
GMT +7.00
Hello,

Add your 99 domains into /usr/local/directadmin/data/users/<USER>/domains/<DOMAIN>.pointers

- <USER> - username of your client
- <DOMAIN> - to which to redirect

Syntax of the file:

Code:
1example.com=pointer
2example.net=pointer
Then rewrite web-server configs and

- Update /etc/virtual/domainowners and /etc/virtual/domains per needs
- Create DNS zones

Or use API.
 
Top