Likes Likes:  0
Resultaten 1 tot 3 van de 3
Geen
  1. #1
    Aparte mail/dns/fallback i.c.m. Plesk
    geregistreerd gebruiker
    115 Berichten
    Ingeschreven
    13/09/04

    Locatie
    Wormer

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: Ja
    KvK nummer: 34185303
    Ondernemingsnummer: nvt

    Thread Starter

    Aparte mail/dns/fallback i.c.m. Plesk

    Ik zoek een oplossing voor het volgende.
    Wij hebben 2 Plesk servers draaien op Fedora.

    Nu wil ik het volgende inrichten:
    1 plesk server voor web/dns/database
    1 plesk server voor mail
    1 fallback mail/dns server

    Standaard ondersteunt Plesk dit niet behalve via Expand wat vrij veel kost. Is het niet op een andere manier in te richten. 4PSA heeft ook niet heel veel mogelijkheden hiervoor.
    Het lijkt me dat meerdere bedrijven het zo ingericht hebben.

    Alvast bedankt!

  2. #2
    Aparte mail/dns/fallback i.c.m. Plesk
    VoipQ
    1.298 Berichten
    Ingeschreven
    26/07/05

    Locatie
    Delft

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Naam: Ryan Kalkhoven
    Bedrijf: VoipQ
    Registrar SIDN: Nee
    KvK nummer: 27183560
    Ondernemingsnummer: nvt

    Je kan hiervoor scriptjes schrijven, maar als je gaat kijken naar de verhouding eigen uren tov de aanschaf van expand dan is expand al vrij snel een stuk voordeliger.

  3. #3
    Aparte mail/dns/fallback i.c.m. Plesk
    geregistreerd gebruiker
    9 Berichten
    Ingeschreven
    22/08/07

    Locatie
    ter aar

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: ja
    KvK nummer: 27183007
    Ondernemingsnummer: nvt

    secondaryupdate.pl

    ik heb zelf 1 fallback voor dns en mail:

    hoe heb ik het opgelost:
    1 debian host met postfix.
    Via perl script (zie de link) worden de domeinnamen/aliassen opgehaald
    De resultaten hiervan wordt in relay en transport gezet (scrip heb ik dus aangepast)
    Via webmin kan ik makkelijk de Mail Queue zien.

    1 host voor dns (kan evt op 1 machine)
    scripje dat uit de mysql van plesk de zone gegevens haalt.

    Bij mij werkt het super. Kijk hier eens:

    http://forum.swsoft.com/pda/index.php/t-38404.html

    Hier draait het om:

    #!/usr/bin/perl
    ################################################## #############################
    ## $Id: secondaryupdate.pl,v 1.1 2004/12/16 21:54:23 web0 Exp $
    ## ------------------------------------------------------------------------ ##
    ## SecondaryUpdate.pl - Add Zoneconfigs from PLESK dBase ##
    ## Copyright (c) 2004 Dennis Paulisch ##
    ## <http://www.blitzengineers.net/> ##
    ## ------------------------------------------------------------------------ ##
    ## This program is free software; you can redistribute it and/or modify ##
    ## it under the terms of the GNU General Public License as published by ##
    ## the Free Software Foundation; either version 2 of the License, or ##
    ## (at your option) any later version. ##
    ## ##
    ## You may not change or alter any portion of this comment or credits ##
    ## of supporting developers from this source code or any supporting ##
    ## source code which is considered copyrighted (c) material of the ##
    ## original comment or credit authors. ##
    ## ##
    ## This program is distributed in the hope that it will be useful, ##
    ## but WITHOUT ANY WARRANTY; without even the implied warranty of ##
    ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ##
    ## GNU General Public License for more details. ##
    ## ##
    ## You should have received a copy of the GNU General Public License ##
    ## along with this program; if not, write to the Free Software ##
    ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ##
    ## ------------------------------------------------------------------------ ##
    ################################################## #############################

    # Needed Perl Modules
    use strict;
    use warnings;
    use DBI;

    ######## CONFIGURATION ################################################## ######

    my $dbname = "psa"; # PLESK Database
    my $username = " "; # User for query only the DNS->Domain
    my $pw = " "; # Password
    my $dbhost = " "; # PLESK DB Host
    my $masters = " "; # IP Of Primary Master Nameserver
    my $namedreload = "/etc/init.d/bind9 reload"; # Command to Reload the Named Config
    my $configfile = "/etc/bind/named.plesksec"; # Named Include File

    ################################################## #############################
    print "\n";
    print "SecondaryUpdate Started\n";

    ### MAIN ################################################## ####################

    # Define Variables
    my ( $sql, $dbconnect, $select, $date) = ();
    my @domain = ();

    # Open Database Connection
    $dbconnect = DBI->connect("DBI:mysql:database=$dbname:host=$dbhost" , "$username", "$pw", { PrintError => 0, RaiseError => 0 })
    or die "Can't connect to sql server. Reason: $DBI::errstr";

    # Query the Primary Domains from PLESK Database
    $sql="select displayName from domains";
    $select=$dbconnect->prepare($sql);
    $select->execute
    or die "Can't execute statement $sql: Reason: $DBI::errstr\n";

    # Get the current Date and Time
    $date=gmtime();

    # Write Zone Config
    open (ZONEFILE, ">$configfile") || die("Could not write file!");

    print ZONEFILE "#### Zone Config created by SecondaryUpdate.pl ####\n";
    print ZONEFILE "#### File Created: $date ####\n";
    print ZONEFILE "#### Written by Dennis Paulisch <http://www.blitzengineers.net> ####\n\n\n";

    while( @domain = $select->fetchrow_array)
    {
    print "- $domain[0] added\n";
    print ZONEFILE "zone \"$domain[0]\" in {\n";
    print ZONEFILE " masters {$masters;};\n";
    print ZONEFILE " type slave;\n";
    print ZONEFILE " file \"slave/$domain[0].db\";\n";
    print ZONEFILE "};\n";
    print ZONEFILE "\n";
    }
    close (ZONEFILE);

    print "\nfinished...\n";

    # Close DB Connection
    $select-> finish;
    $dbconnect->disconnect;

    system($namedreload . " >/dev/null");

    ### END ################################################## ###################
    exit 0;

Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics