In another way, you can "hack" vegadns to support the upload of a text file
containing all the domains, one per line. I did that (in a quick and dirty
way), and it worked just fine for some 900 zones, don't see why it shouldn't
work with 1500 (pay attention to php.ini's max_execution_time though)
I have no diff file (some other customizations getting in the way and today
i'm a bit lazy), but i provide code snippets for it.
-> in templates/import_form.tpl:
change form definition:
<form method="post" enctype="multipart/form-data" action="{$php_self}">
add table row with file upload input:
<tr bgcolor="#eeeeee">
<td>Input file:<br>(one domain per line)</td>
<td><input type="file" name="domfile"></td>
</tr>
-> in src/domains.php
before line that says " // Make sure that some domains were given", make
changes according to code snippets below:
// Check if file was uploaded
$gotfile = 0;
if ($_FILES['domfile']['size'] != 0) $gotfile = 1; // ok, we have a
file!
// Make sure that some domains were given
if( !$gotfile && (!isset($_REQUEST['domains']) || $_REQUEST['domains']
== "") ) {
[...]
// Build domains array from input
if ( !$gotfile && isset($_REQUEST['domains'])) {
$array_notunique = explode("\n",$_REQUEST['domains']);
}
// Build domains array from file
if ( $gotfile ) {
$array_notunique = @file($_FILES['domfile']['tmp_name']);
}
All done! Note: if a file is successfully uploaded, anything in the domain
list textarea of the form will be ignored, as we can see in the code
conditions. PHP will automatically unlink the temporary uploaded file after
the script finishes execution. I hope this is of any use for someone.
Best regards,
rodrigo
> -----Original Message-----
> From: Bill Shupp [mailto:[EMAIL PROTECTED]
> Sent: ter�a-feira, 31 de Agosto de 2004 13:41
> To: [EMAIL PROTECTED]
> Subject: [users] Re:[users] Importing 1500 zones
>
> The easiest way to import domains is to import via AXFR from
> the VegaDNS interface. The only problem is that there is a
> limit to the amount of POST data the web server will accept
> per connection. I've found that Apache's default limit
> translates to around 100 domain names per import. But you
> can probably change this, I have not looked into it.
>
> Cheers,
>
> Bill
>