ndyndns - ein dyndns-client

sf3978

IPPF-Promi
Mitglied seit
2 Dez 2007
Beiträge
8,014
Punkte für Reaktionen
28
Punkte
48
Im Anhang ein Patch für ndyndns. Nur für den Provider "members.dyndns.org" geeignet. Kann mehrere hostnamen updaten und ssl (Port 443). Als Beispiel, meine ndyndns.conf:
Code:
[config]
chroot = /var/mod/home/nobody
user = nobody
group = nobody
interface = tun0

[dyndns]
username = ?????
password = ***********
hosts = #####.####.nu
hosts = #####.####.nu
hosts = #####.###.cx
hosts = #####.####.nu
hosts = ########.###.cx
Das Interface tun0 wird nicht benötigt, denn:
Code:
If the system running ndyndns is not your border device (eg, it is behind a
router or firewall, and its IP address is not internet-routable), you should
add the -r switch to ndyndns.  The -r switch will instruct ndyndns to use
the IP returned by checkip.dyndns.org.  Note that -r should only be used
if necessary: as is required by dyndns.org policies, checkip.dyndns.org will
not be queried more than once every ten minutes.

Code:
/var/mod/root # ndyndns [B][COLOR="Red"]-r[/COLOR][/B] -n -x -f /tmp/flash/mod/ndyndns.conf
hosts: [####.####.nu]                                                                                                         
lookup_dns: returned [##.###.###.50]                                                    
adding: [#####.####.nu] ip: [##.###.##.50]                                                                             
curl has SSL support, using https.                                                     
updating to interface: [tun0]                                                          
adding for refresh [#####.####.nu]                                                     
update url: [https://members.dyndns.org/nic/update?system=dyndns&hostname=#####.####.nu&myip=##.###.###.50&wildcard=NO&mx=NOCHG&backmx=NOCHG&offline=NO]
####.####.nu: [good] - Update successful.
 

Anhänge

  • ndyndns.patch.txt
    3.4 KB · Aufrufe: 6
Wieviele DynDNS-Clients haben wir denn mittlerweile? Gibt es nicht wenigstens einen, von dem man sagen kann, daß er funktioniert und alles tut, was man braucht?
 
..., von dem man sagen kann, daß er funktioniert und alles tut, was man braucht?
In Freetz gibt es mittlerweile, ... ich glaube 3 dyndns-clients. opendd tut das was man braucht und ist universal anwendbar (fast alle Provider). noip2 ist auch gut, aber halt nur für noip. ndyndns ist (noch) nicht in Freetz, aber auch gut und nur für members.dyndns.org.
Ein namhafter Freetz-Entwickler hat mal geschrieben, dass Freetz von der Vielfalt lebt. Siehe z. B. openWRT & Co. D. h. hat man nie genug.:D
 
Versuche das ndyndns zu nutzen, bekomme aber immer die Meldung: FATAL - Invalid uid specified.
Benutze abgeänderte ndyndns.conf von oben (nur die Zugangsdaten geändert). Nutze freetz-devel-5979M auf 7141. Was könnte mein Fehler sein?

MFG
Sedoy
 
..., bekomme aber immer die Meldung: FATAL - Invalid uid specified.
...
Was hast Du bei user und group eingetragen?

EDIT:

Code:
root@fritz:/var/mod/home# ndyndns -h
ndyndns 2.1, dyndns update client.  Licensed under GNU GPL.
Copyright (C) 2005-2010 Nicholas J. Kain
Usage: ndyndns [OPTIONS]
  -d, --detach                detach from TTY and daemonize
  -n, --nodetach              stay attached to TTY
  -q, --quiet                 don't print to std(out|err) or log
  -c, --chroot                path where ndyndns should chroot
  [COLOR="Red"]-x, --disable-chroot        do not actually chroot (not recommended)[/COLOR]
  -f, --file                  configuration file
  -F, --cfg-stdin             read configuration file from standard input
  -p, --pidfile               pidfile path
 [COLOR="Red"] -u, --user                  user name that ndyndns should run as
  -g, --group                 group name that ndyndns should run as[/COLOR]
  -i, --interface             interface ip to check (default: ppp0)
  [COLOR="Red"]-r, --remote                get ip from remote dyndns host (overrides -i)[/COLOR]
  -h, --help                  print this help and exit
  -v, --version               print version and license info and exit

Code:
root@fritz:/var/mod/root# [COLOR="Red"]ls -l /mod/home[/COLOR]
drwxr-xr-x    2 ftp      users            0 Oct 15 23:12 ftp
[COLOR="Red"]drwxr-xr-x    2 nobody   nobody           0 Jul 30 20:46 nobody[/COLOR]
drwxr-xr-x    2 prosody  prosody          0 Jun 26 00:17 prosody
 
Zuletzt bearbeitet:
Hab den Fehler gefunden. Ich hatte keinen User nobody :) . Hab einfach den "ftp" benutzt.
Wie kann ich ndyndns am bestem starten, mit rc.custom als daemon, oder anders? Die Fritz!Box läuft nur als IP-Client hinter einem anderem Router.

MFG
Sedoy
 
ftp User wäre auch OK gewesen, aber nobody schadet nicht.;) Deine Box "nur als IP-Client", d. h. das onlinechanged-Ereignis findet nicht statt? Wenn so, dann wäre daemon mit rc.custom aus meiner Sicht ok.
 
Es gibt aber kein User nobody. Muss man den selbst erstellen?

Ansonsten vielen Dank für die Hilfe.
 
Ja, wenn man nobody benutzen will, dann muss man ihn selber erstellen (inkl. das Verzeichnis "/mod/home/nobody" mit den entsprechenden Rechten).
 

Zurzeit aktive Besucher

Neueste Beiträge

Statistik des Forums

Themen
244,872
Beiträge
2,219,909
Mitglieder
371,594
Neuestes Mitglied
AA-Idealbau
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.