    {
        my $deamonupdate = ${ddclient}{DeamonUpdate} || '360';
        if ($deamonupdate <= 360) {$deamonupdate = 360;}    # Confuses ddclient runs if less than 5 minutes
        my $ssl = ${ddclient}{SSL} || 'yes';
        $OUT .= qq(
daemon=$deamonupdate                                     # check every $deamonupdate seconds
syslog=yes                                     # log update msgs to syslog
pid=/var/run/ddclient.pid                      # record PID in file.
ssl=$ssl                                        # Set SSL
);


    my $mailSuccess = $ddclient{'mailSuccess'}||'admin';

    if (($mailSuccess eq 'none') || ($mailSuccess eq '' )) {
        $mailSuccess = "";
    }
    
    my $mailFailure = $ddclient{'mailFailure'}||'admin';

    if (($mailFailure eq 'none') || ($mailFailure  eq '')) {
        $mailFailure = "";
    }
    
    $OUT .= "\n";
    $OUT .= "mail=$mailSuccess\n";                                      # mail update msgs to admin
    $OUT .= "mail-failure=$mailFailure\n";

    my $method = $ddclient{'method'}||'web';

#    my $webskip = $ddclient{'webskip'}||'IP Address:';   #No longer supported for v3.11.1
#    my $cmdskip = $ddclient{'cmdskip'}||''; #No longer supported for v3.11.1
#    my $ifskip = $ddclient{'ifskip'}||''; #No longer supported for v3.11.1

    my $Extinterface =  $ddclient{'Extinterface'}|| $ExternalInterface{'Name'}|| '';
    my $cmd = $ddclient{'cmd'} || '/sbin/e-smith/db configuration getprop ExternalInterface IPAddress';
    my $ForceIP = $ddclient{'ForceIP'} || $ExternalInterface{'IPAddress'} || $ExternalIP || '';
    $OUT .= "\n";
	if ( $method eq 'smeIF' ) {
		# we use SME db to get the external interface NAME : ppp0, eth1, tap0...
		$Extinterface = $ExternalInterface{'Name'} ||$Extinterface;
        	$OUT .="usev4=ifv4, ifv4=$Extinterface\n";
	} elsif ( $method eq 'smeCMD') {
		# we choose to just get the value from configuration DB
		$OUT .="usev4=cmdv4, cmdv4='/sbin/e-smith/db configuration getprop ExternalInterface IPAddress'\n";
	} elsif ( $method eq 'web') {
		# old good way, we get the value from an external web page. best if we are not gateway
		$OUT .="usev4=webv4, webv4=$ddclient{'urlcheckip'} \n";   #Do not add / as may be web service id, not url
	} elsif ( $method eq 'if') {
		# we have a specific configuration and can not trust sme to get the interface correctly
		$OUT .="usev4=ifv4, ifv4=$Extinterface\n";  #if-skip no longer required / deprecated
	} elsif ( $method eq 'ip') {
		# we want to force manually
		$OUT.="usev4=ipv4, ipv4=$ForceIP \n";
	} elsif ( $method eq 'cmdv4') {
		$OUT .="usev4=cmdv4, cmdv4='$cmd'\n";
	} else {
		# fw method
		my $fwaddress = $ddclient{'fwaddress'}||'';
		my $fwdevice = $ddclient{'Extinterface'}||'';
		my $fwlogin = $ddclient{'fwlogin'}||'';
		my $fwpassword = $ddclient{'fwpassword'}||'';
		my $fwskip = $ddclient{'fwskip'}||'';
		$OUT .= "usev4=$fwdevice, fwv4=$fwaddress";
		$OUT .= ", fw-login=$fwlogin " if ( $fwlogin ne '' );
		$OUT .= ", fw-password=$fwpassword " if ( $fwpassword ne '' );
		$OUT .= ", fwv4-skip='$fwskip' " if ( $fwskip ne '' );
		$OUT .= "\n";
	}

    }

