Home

Inadyn

Rebatman

Usuario Destacado
Fan de OpenSPA
Amigo OpenSPA
29 Ene 2012
236
21
0
A ver si se os ocurre porque no me actualiza el inadyn por si solo sino es que lo actualizo yo por telnet.

Tengo activa el inadyn en el autorun

Código:
########## place it after resolv.conf ###########
/etc/init.d/inadyn start
#################################################

Y el inadyn config lo tengo de la siguiente manera

Código:
##y le añades una primera linea, como esta:
--dyndns_system [email protected]
##configuras las siguientes con los datos de tu cuenta hosts en no-ip.com
--username rXXXXXXX@XXXXX
--password XXXXXXXX
--alias XXXXXXX.no-XX.XXX
--update_period 60000

Y por telnet me funciona correctamente

Código:
[root@stlinux]#inadyn
INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
I:INADYN: IP address for alias 'XXXXXXXXX' needs update to '88.5.180.155'
I:INADYN: Alias 'XXXXXXXXXXXXXX' to IP '88.5.180.155' updated successful.

y lo que veo es que lo tengo activa si hago un ps

Código:
  243 root         0 SW   [jfsSync]
  244 root         0 SW   [crypto/0]
  381 root         0 SW   [scsi_eh_0]
  388 root         0 SW   [mtdblockd]
  465 root         0 SW   [usbhid_resumer]
  522 root         0 SW   [scsi_eh_1]
  523 root         0 SW   [usb-storage]
  528 root      2640 S    /bin/sh /etc/init.d/rcS
  667 root      2640 S    /usr/sbin/telnetd
  682 root      4040 S    /usr/sbin/sshd
  687 root      1728 S    /usr/sbin/inadyn
 

palancas

Usuario
Vip OpenSPA
28 Sep 2010
1.010
256
0
Pues no se, yo lo hago en el router en la opción de Dynamic DNS, le meto la configuración de mi cuenta no_ip y me olvido de plugins, ya te lo hace solo.
 

Mecha

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
14 Ene 2010
4.132
819
0
España
al inadyn config añadele estas dos lineas que te añado al final de tu ejemplo:

--dyndns_system [email protected]
--username rXXXXXXX@XXXXX
--password XXXXXXXX
--alias XXXXXXX.no-XX.XXX
--update_period 60000
--log_file /tmp/inadyn.log
--background
Y por telnet puedes ir viento el contenido del archivo de log, con el comando
cat /tmp/inadyn.log
y así miras si realmente está funcionando.
 

Rebatman

Usuario Destacado
Fan de OpenSPA
Amigo OpenSPA
29 Ene 2012
236
21
0
Me esta intentando actualizar un host que no es el mio, y mi archivo de configuración sale el mio

Código:
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
 

Mecha

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
14 Ene 2010
4.132
819
0
España
por telnet:
primero:
killall inadyn

despues:
/usr/sbin/inadyn

despues:
cat /tmp/inadyn.log

[root@stlinux]#killall inadyn
[root@stlinux]#/usr/sbin/inadyn
[root@stlinux]#
[root@stlinux]#cat /tmp/inadyn.log
INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
I:INADYN: IP address for alias 'xxxxxxxx.no-ip.org' needs update to 'xx.xx.xx.xx'
I:INADYN: Alias 'xxxxxxxx.no-ip.org' to IP 'xx.xx.xx.xx' updated successful.
si tienes errores, comprueba en el /root/spark/etc/inadyn.conf
que esté todo bien.
--dyndns_system [email protected]
--username [email protected]
--password xxxxxxxx
--alias xxxxxxxx.no-ip.org
--update_period 60000
--log_file /tmp/inadyn.log
--background
 

Mecha

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
14 Ene 2010
4.132
819
0
España
Me esta intentando actualizar un host que no es el mio, y mi archivo de configuración sale el mio

Código:
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)

cuando te da ese error, lo mas probable es que no tengas acceso a internet desde el deco,
el mensaje dice error resolviendo el host name "ip1.dynupdate.no-ip.com'
escribe en un navegador de intenet la dirección web: ip1.dynupdate.no-ip.com
¿que es lo que te muestra como resultado?
yo diria que es tu IP pública.
Si inadyn consigue obtener tu ip publica, entonces actualizara tu cuenta hostname en no-ip.org

prueba esto:
wget -O mi-ip.txt http://ip1.dynupdate.no-ip.com
cat mi-ip.txt
[root@stlinux]#wget -O mi-ip.txt http://ip1.dynupdate.no-ip.com
Connecting to ip1.dynupdate.no-ip.com (8.23.224.121:80)
mi-ip.txt 100% |***************************************| 11 --:--:-- ETA
[root@stlinux]#cat mi-ip.txt
xx.xx.xx.xx[root@stlinux]#
en lo que marco en rojo verás tu ip de internet, claro está si consigues tener acceso.
 

Rebatman

Usuario Destacado
Fan de OpenSPA
Amigo OpenSPA
29 Ene 2012
236
21
0
bueno creo que ya se cual es el problema y no me digas porque pero cuando reinicio el deco parece que el inadyn no funciona debo pararlo y volverlo a arrancar. Os pongo un log. Se te ocurre alguna idea?

Código:
[root@stlinux]#cat /tmp/inadyn.log
INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
INADYN:IP: Error '0xb' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)

[root@stlinux]#killall inadyn
[root@stlinux]#/usr/sbin/inadyn
[root@stlinux]#cat /tmp/inadyn.log

INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
I:INADYN: IP address for alias 'XXXXXXXX.no-ip.org' needs update to '88.5.xxx.1xx'
I:INADYN: Alias 'xxxxxxxx.no-ip.org' to 88.5.xxx.1xx' updated successful.
[root@stlinux]#
 

Mecha

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
14 Ene 2010
4.132
819
0
España
Puede que en el arranque el inadyn se cargue antes de tener conexión buena de red, y por eso falle y ya no encuentre las DNS.
Esta tarde lo pruebo en mi deco, y si es eso, hacemos un script que se ejecute al final del arranque, que cierre el proceso inadyn, y vuelva a reiniciarlo, y a ver si así, el log es correcto.
 

torsen

Usuario
Amigo OpenSPA
30 Jul 2013
34
7
0
51
Puede que en el arranque el inadyn se cargue antes de tener conexión buena de red, y por eso falle y ya no encuentre las DNS.
Esta tarde lo pruebo en mi deco, y si es eso, hacemos un script que se ejecute al final del arranque, que cierre el proceso inadyn, y vuelva a reiniciarlo, y a ver si así, el log es correcto.

como me gusta la gente que se preocupa por ayudar mil gracias mecha por como eres
saludos
 
  • Me gusta
Reactions: Mecha

Mecha

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
14 Ene 2010
4.132
819
0
España
Hola Torsen, gracias a ti tambien, que tambien ayudas a todos, como yo en lo que se pueda.
saludos.
 

torsen

Usuario
Amigo OpenSPA
30 Jul 2013
34
7
0
51
de nada pero tu sabes que hoy en día cuesta que la gente pierda su tiempo para ayudar sin interés
ya no es como antes por eso me gusta y no cuesta nada agradecer ese esfuerzo públicamente


saludos
 

Mecha

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
14 Ene 2010
4.132
819
0
España
Bueno, he mirado el inadyn.log mio después del reinicio que le tengo programado al deco, y esto es lo que tiene:
INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
INADYN:IP: Error '0x0' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
I:INADYN: IP address for alias 'xxxxxxxxx.no-ip.org' needs update to 'xx.xx.xx.xx'
I:INADYN: Alias 'xxxxxxxxx.no-ip.org' to IP 'xx.xx.xx.xx' updated successful.
Es decir el primer intento de obtener mi IP publica a fallado, pero ya al segundo si lo ha obtenido y actualizado mi cuenta host

viendo el archivo autorun.sh, veo que dice:
########## colocarlo después resolv.conf ###########
/etc/init.d/inadyn start
#################################################
y comprobando donde se encuentra la linea que ejecuta el resolv.conf, veo que mas arriba, hay otro comando deshabilitado con ## que se ve que en una configuración de versiones anteriores era donde se ejecutaba el inadyn.
ln -sf /root/spark/etc/inadyn.conf /etc/inadyn.conf

/etc/init.d/sshd start
##/etc/init.d/inadyn start
rm -rf /tmp/*

find /etc/ -type l -name "resolv.conf" | xargs rm -rf
ln -s $USRSCRIPTDIR/resolv.conf /etc/resolv.conf
Miralo que tu tambien lo tengas deshabilitado, para que no se inicie antes del resolv.conf.
 

Rebatman

Usuario Destacado
Fan de OpenSPA
Amigo OpenSPA
29 Ene 2012
236
21
0
Gracias Mecha

Efectivamente lo tenia habilitado

Código:
/etc/init.d/sshd start
/etc/init.d/inadyn start
rm -rf /tmp/*

find /etc/ -type l -name "resolv.conf" | xargs rm -rf
ln -s $USRSCRIPTDIR/resolv.conf /etc/resolv.conf
ln -s $USRSCRIPTDIR/directfbrc /etc/directfbrc

Lo deshabilito y lo pruebo de nuevo

Código:
[root@stlinux]#cat /tmp/inadyn.log
INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
INADYN:IP: Error '0x0' resolving host name 'ip1.dynupdate.no-ip.com'
W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
I:INADYN: IP address for alias 'xxxxx.no-xx.xxxx' needs update to 'xx.x.xx.xx'