Nimm lieber das hier: DDNSupdater2.sh, da sind weitere Features eingebaut!
Das verhalten ist aber korrekt!

@feissmaik:
Vielleicht solltest Du die alte Variante vom Server nehmen?!
Grüss
szonic
Code: Alles auswählen
#DDNSupdater starten
/sbin/ddns start &
Code: Alles auswählen
#!/bin/bash
#
# DynamicDNSupdater - supports: DynDNS.org, NO-IP.com, DYNServ.ca and IPActive.de
#
# Es koennen auch verschiedene Dienste genutzt werden um mehrere DNS-Hosts zu nutzen...
#
# Sonderzeichen im Password werden nun auch supported (danke IDDQD)
#
# credits: Didge2002, SnowHead, r00t, rj.2001, IDDQD
#
### CONFIG - START
# Zugangsdaten...
# es koennen mehrere accounts geupdated werden... (rest auskommentieren)
USERNAME["1"]="XXXXXXXXX" # DDNS Benutzername1
PASSWORD["1"]="XXXXXXXX" # DDNS Passwort1
DDNSHOST["1"]="XXXXXXX.dyndns.tv" # DDNS Hostname1
#USERNAME["2"]="benutzer2" # DDNS Benutzername2
#PASSWORD["2"]="password2" # DDNS Passwort2
#DDNSHOST["2"]="host2.zapto.org" # DDNS Hostname2
#USERNAME["3"]="benutzer3" # DDNS Benutzername3
#PASSWORD["3"]="password3" # DDNS Passwort3
#DDNSHOST["3"]="host3.dyndns.org" # DDNS Hostname3
#
# Provider URL's - pro DDNSHOST muss wie oben ein dazu passendes URL["<zahl>"] angelegt werden!
# (beliebig erweiterbar)
#
# $USERNAME , $PASSWORD , $DDNSHOST werden innerhalb der URL mit %USER% , %PASS% , %HOST% angegeben!
#
URL["1"]="http://%USER%:%PASS%@members.dyndns.org/nic/update?hostname=%HOST%"
#URL["2"]="http://dynupdate.no-ip.com/dns?username=%USER%&password=%PASS%&hostname=%HOST%"
#URL["3"]="http://%USER%:%PASS%@members.dyndns.org/nic/update?hostname=%HOST%"
#
# BEISPIEL URL's
#
# DynDNS.org: "http://%USER%:%PASS%@members.dyndns.org/nic/update?hostname=%HOST%"
# No-IP.com: "http://dynupdate.no-ip.com/dns?username=%USER%&password=%PASS%&hostname=%HOST%"
# DYNServ.ca: "http://dynserv.ca/dyn/dynengine.cgi?name=%USER%&pass=%PASS%&func=set&domain=%HOST%"
# IPActive.de: "http://logon.ipactive.de/cgi-bin/logon_off.pl?V=2.1&B=%USER%&P=%PASS%&IP=%HOST%&F=1"
# two-dns.de: "http://%USER%:%PASS%@update.two-dns.de/update?hostname=%HOST%"
sie sollten nur noch nach Bedarf aktiviert werden.Code: Alles auswählen
#DDNSupdater.sh #@reboot root /var/emu/script/DDNSupdater.sh auto #DDNSupdater.sh bei System boot/reboot starten #0 6 * * 1 root /var/emu/script/DDNSupdater.sh now #DDNSupdater.sh Static-IP Update erzwingen (Woechentlich um 06:00,Montag) #DDNSupdater2.sh #@reboot root /var/emu/script/DDNSupdater2.sh auto #DDNSupdater2.sh bei System boot/reboot starten #0 6 * * 1 root /var/emu/script/DDNSupdater2.sh now #DDNSupdater2.sh Static-IP Update erzwingen (Woechentlich um 06:00, Mon$
Code: Alles auswählen
#DynDNS Static Update -> benoetigt [apt-get install ddclient]
#6 6 * * 1 root /usr/sbin/ddclient -force > /var/log/ipc/dyndns_update.log #Static DynDNS Update (Woechentlich um 06:06, Montag)
#DDNSupdater.sh
#@reboot root /var/emu/script/DDNSupdater.sh auto #DDNSupdater.sh bei System boot/reboot starten
#0 6 * * 1 root /var/emu/script/DDNSupdater.sh now #DDNSupdater.sh Static-IP Update erzwingen (Woechentlich um 06:00,Montag)
#DDNSupdater2.sh
#@reboot root /var/emu/script/DDNSupdater2.sh auto #DDNSupdater2.sh bei System boot/reboot starten
#0 6 * * 1 root /var/emu/script/DDNSupdater2.sh now #DDNSupdater2.sh Static-IP Update erzwingen (Woechentlich um 06:00, Montag)
Code: Alles auswählen
#DDNSupdater2.sh
@reboot root /var/emu/script/DDNSupdater2.sh auto #DDNSupdater2.sh bei System boot/reboot starten
Code: Alles auswählen
0 6 * * 1 root /var/emu/script/DDNSupdater2.sh now #DDNSupdater2.sh Static-IP Update erzwingen (Woechentlich um 06:00, Montag)
GrußCode: Alles auswählen
Usage: ddns [now|auto|kill|status|pid|help] ddns now -> Force to update DDNSHOST immediately (erzwinge sofortiges updaten von DDNSHOST) ddns auto -> Checks/updates DDNSHOST every 300 seconds (Ueberprueft/updated DDNSHOST alle 300 Sekunden) ddns kill -> Kills running script (Script wird beendet) ddns status -> Show current DDNSHOSTs status (Zeigt den aktuellen Status, ob ein update noetig ist) ddns pid -> Show Process IDs (Zeigt die verwendeten ProzessIDs dieses Scripts) ddns deinstall -> Deinstalls Script (Deinstalliert das Script) ddns help -> This help... (Zeigt diese Hilfe...)
Mitglieder in diesem Forum: Semrush [Bot] und 0 Gäste