Eric Lim
08-15-2003, 06:31 PM
How do I edit all domain names together with a single command in Cpanel. Like in Ensim, I could do it with a simple shell loop calling the command EditVirtDomain. Does anybody know I can do this on Cpanel.
I have edited the wwwacct scripts and some of the modifications must also apply to the current domain names.
Thank you.
kcdworks
08-15-2003, 06:54 PM
Depends on what you are trying to do. What modifications are you trying to make?
Eric Lim
08-15-2003, 06:58 PM
I added three things into the scripts wwwacct.
; SECONDARY MAIL SERVER DO NOT DELETE THIS ENTRY
mbox 14400 IN A <some_ip>
; END SECONDARY MAIL SERVER INFORMATION
An additional simple perl scripts that add the $domain into the /etc/secondarymx file in the secondary server.
And another perl code that add the ${domain} into Round Robin DNS configuration and a passphrase for proxy to enter the backup database server.
Any ideas? I have no clue how to change all of them at once.
Edit:
The Secondary MX record and editing the file secondarymx in second server are more important at this moment.