
09-17-2005, 03:53 PM
|
|
New Member
|
|
Join Date: May 2005
Posts: 1
|
|
Adding 15,000 park domains..not joking...
Hello,
I have to park 15,000 domains on my main account. I am not joking.. I have to park 15 thousand domains...
And Iam getting mad of it.
To add them individually from the Cpanel is not at all practical. I thought of some scripting. Iam not that expert in scripting. I somehow managed to add an alias in the httpd.conf file for them, but the named seems to be a big task . Shall I have to add the zone file for each domain and also add the corresponding entry in named.conf?
It would be appreciated if anyone could shed some light.
Regards,
Tharakan
|

09-17-2005, 03:56 PM
|
|
Web Developer
|
|
Join Date: Feb 2003
Location: Connecticut
Posts: 5,441
|
|
Can you export a list of each domain to a text file?
If so just hire someone in the Related Offers and Requests forum to write a script to run through each and create an account for them. I believe they can write one to interface with cPanel or any control panel.
Now, will each of these have separate sites, or will they point to one page? Make sure to be specific since the script can have them parked on one site, or have their own sites.
Impressive domain count 
|

09-18-2005, 01:33 AM
|
|
Aspiring Evangelist
|
|
Join Date: Sep 2002
Location: Canada
Posts: 443
|
|
wow 15K domains. I wonder what domain registrar you use for these  maybe you are your own accredited registrar.
__________________
Reliability • Performance • Integrity
|

09-18-2005, 02:10 AM
|
|
Web Hosting Master
|
|
Join Date: Apr 2004
Location: SF Bay Area
Posts: 875
|
|
Re: Adding 15,000 park domains..not joking...
Quote:
Originally posted by tharakan
Hello,
I have to park 15,000 domains on my main account. I am not joking.. I have to park 15 thousand domains...
And Iam getting mad of it.
To add them individually from the Cpanel is not at all practical. I thought of some scripting. Iam not that expert in scripting. I somehow managed to add an alias in the httpd.conf file for them, but the named seems to be a big task . Shall I have to add the zone file for each domain and also add the corresponding entry in named.conf?
It would be appreciated if anyone could shed some light.
|
If is reasonably trivial to write a Perl or PHP script, perhaps even shell script that could do this quite easily. Hopefully you have the domains listed in some kind of flat file, CSV, or database. Surely you must somewhere.
I would get them in a format that is manageable for a script that will split the domains based on commas or tabs. After that it's really child's play, be it 1 domain or 100,000.
|

09-18-2005, 05:14 AM
|
|
Web Hosting Master
|
|
Join Date: Jul 2004
Posts: 928
|
|
Ouch, hope you find a solution to this problem, by the way how u get 15k domains?
|

09-18-2005, 06:23 AM
|
|
Build It Better!
|
|
Join Date: Dec 2002
Posts: 5,418
|
|
That's quite a hefty renewal bill as well!
I don't know about where you're from but here we could get something like that done for about $100.00 by hiring a data entry individual to do it manually. Some of those people can type in excess of 100 WPM and are worth every penny for things like this.
|

09-18-2005, 09:28 AM
|
|
Web Hosting Master
|
|
Join Date: Jul 2004
Posts: 928
|
|
Wow, thats another good solution!
|

09-18-2005, 11:41 AM
|
|
Engineer
|
|
Join Date: Jan 2005
Location: Scotland, UK
Posts: 2,380
|
|
Probley faster just to make a file with the list of domains, make a quick bash script to output each domain as a ServerAlias , you can create the named entry and leave it at that
Try somthing like
Code:
#!/bin/bash
for i in $(cat domains); do
echo ServerAlias $i www.$i >> httpd
echo blah blah $i some more stuff >> $i.db
echo even more >> $i.db
echo even more >> $i.db
echo some cnames >> $i.db
echo 'zone "img5.imgspot.com" {' >> named
echo 'type master;' >> named
echo 'file "/var/named/'$i'.db";' >> named
echo '}' >> named
done
__________________
Server Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. Keep your servers online.
United Kingdom: *0800 8620073* // United States: *585 563 1729* // Australia: *02 9037 2448* // International: *+44.1412800134*
Scott Mcintyre
|

09-18-2005, 11:46 AM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,637
|
|
one way to do it is this
give it its own ip, in the virtual host do this:
remove the ServerAlias line.
should look something like this:
Quote:
<VirtualHost 2.2.2.2>
DocumentRoot /home2/domain/public_html
BytesLog domlogs/domain.com-bytes_log
User domain
Group domain
CustomLog domlogs/domain.com combined
ScriptAlias /cgi-bin/ /home2/domain/public_html/cgi-bin/
</VirtualHost>
|
next:
put them all in a file:
for i in `cat domains`;do `/scripts/adddns $i ip`;done
one last thing, make sure there is no NameVirtualHost for the ip
|

09-18-2005, 12:01 PM
|
|
WHT Addict
|
|
Join Date: Mar 2005
Posts: 146
|
|
You can do it with out much sweating.
you could do somthing like this. create a file with all the parkdomains we'll say it's called domainlist. then do somthing like this
for i in `cat domainlist`;do /scripts/park maindomain.com $i;done
example of what domainlist would look like
domain1.com
domain2.com
domain3.com
and the main domain is the one on which you want to park all these domains.
Have a good day.
|

09-18-2005, 04:42 PM
|
|
Web Hosting Master
|
|
Join Date: Jun 2003
Location: Istanbul
Posts: 654
|
|
Quote:
Originally posted by codeguru
You can do it with out much sweating.
you could do somthing like this. create a file with all the parkdomains we'll say it's called domainlist. then do somthing like this
for i in `cat domainlist`;do /scripts/park maindomain.com $i;done
example of what domainlist would look like
domain1.com
domain2.com
domain3.com
and the main domain is the one on which you want to park all these domains.
Have a good day.
|
we have solved it with that script yesterday that I found from forums.cpanel.net 
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|