En Spark, entras en el menu de ajustes de red, ip config, pulsas boton verde "Dynamic config" y configuralo con la cuenta de tu hostname, y prueba si funciona.
Yo no le probado, porque lo tengo configurado en el router, para que solo la cambie cada vez que se reinicia el router.
Yo ya se como se hace, en el inadyn.conf metes tus datos, y luego en el autorun.sh descomentas las lineas donde pone el inadyn y funciona
########## place it after resolv.conf ###########
/etc/init.d/inadyn start
#################################################
find /etc/ -type l -name "resolv.conf" | xargs rm -rf
ln -s $USRSCRIPTDIR/resolv.conf /etc/resolv.conf
ln -s $USRSCRIPTDIR/directfbrc /etc/directfbrc
A que te refieres a modificarlo por consola? Yo lo que hago es que accedo vía ftp y es cuando veo lo que arriba he puestoYo lo hecho por consola. Lo de dinamic settings no lo hecho, no se lo que es el resolv.conf
fi
ln -sf /root/spark/etc/inadyn.conf /etc/inadyn.conf
/etc/init.d/sshd start
##/etc/init.d/inadyn start
rm -rf /tmp/*
tal como bien dices Rebatman, los datos del inadyn se pueden configurar por el menu de Dynamic settings, o por consola (telnet) o por ftp editando el archivo /root/spark/etc/inadyn.conf
y como dice qsilver83, para que se ejecute el inadyn en cada arranque del Spark, en el archivo /root/autorun.sh, hay que quitarle ## a la linea de "## /etc/init.d/inadyn start" para descomentarla y habilitarla y que se ejecute en cada inicio del sistema.
fi
ln -sf /root/spark/etc/inadyn.conf /etc/inadyn.conf
/etc/init.d/sshd start
##/etc/init.d/inadyn start
rm -rf /tmp/*
[root@stlinux]#ps
PID USER VSZ STAT COMMAND
1 root 2636 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [events/0]
5 root 0 SW [khelper]
12 root 0 SW [async/mgr]
160 root 0 SW [sync_supers]
162 root 0 SW [bdi-default]
164 root 0 SW [kblockd/0]
170 root 0 SW [ata/0]
171 root 0 SW [ata_aux]
179 root 0 SW [khubd]
182 root 0 SW [kseriod]
202 root 0 SW [rpciod/0]
209 root 0 SW [kswapd0]
210 root 0 SW [aio/0]
211 root 0 SW [nfsiod]
212 root 0 SW< [kslowd000]
213 root 0 SW< [kslowd001]
215 root 0 SW [jfsIO]
216 root 0 SW [jfsCommit]
217 root 0 SW [jfsSync]
218 root 0 SW [crypto/0]
356 root 0 SW [mtdblockd]
479 root 0 SW [usbhid_resumer]
511 root 2640 S /bin/sh /etc/init.d/rcS
521 root 0 SW [flush-1:0]
635 root 2640 S /usr/sbin/telnetd
650 root 4040 S /usr/sbin/sshd
[COLOR=#ff0000]655 root 1728 S /usr/sbin/inadyn AQUI ESTA EL PROCESO[/COLOR]
735 root 0 DW [ics_admin]
736 root 0 DW [ics_nsrv]
737 root 0 DW [ics_watchdog]
752 root 0 DW [mme_manager]
759 root 0 SW [STFDMA_ClbckMgr]
760 root 0 SW [STFDMA_ClbckMgr]
1093 root 2232 S ./vsftpd/vsftpd ./vsftpd/vsftpd.conf
1096 root 3736 S /usr/sbin/smbd -D -s /etc/samba/smb.conf
1098 root 2804 S /usr/sbin/nmbd -D -l /tmp -s /etc/samba/smb.conf
1119 root 42484 S ./ywsystem_server.exe
1120 root 553m S ./ywapp.exe
1128 root 0 SW [STCLKRVTask0]
1133 root 0 SW [STBLIT_ItTask]
1134 root 0 SW [BLAST_Receive]
1135 root 0 SW [BLAST_Timer]
1142 root 0 SW [stpti4_IntTask]
1143 root 0 SW [stpti4_EvtTask]
1145 root 0 SW [AUD[0].PESTask]
1146 root 0 SW [AUD[0].DecTask]
1147 root 0 SW [AUD[0].SPDIFF]
1148 root 0 SW [AUD[0].PPTask]
1149 root 0 SW [AUD[1].PPTask]
1150 root 0 SW [AUD[0].PCMPTask]
1151 root 0 SW [AUD[1].PCMPTask]
1152 root 0 SW [AUD[0].SPDIFP]
1166 root 0 SW [NET0]
1168 root 0 SW [STUART_TIMER_0]
1169 root 0 SW [STUART_TIMER_1]
1170 root 0 SW [SMART_EventMana]
1208 root 0 DW [STVOUT_ISM]
1209 root 0 SW [STVOUT.CECTask]
1210 root 0 SW [STHDMI.CECTask]
1211 root 0 DW [STLAYER-GFX/CUR]
1212 root 0 DW [STLAYER-GFX/CUR]
1213 root 0 DW [STLAYER-GFX/CUR]
1233 root 2636 S sh -c . run-Corsair &
1246 root 69836 S /root/spark/etc/opera/bin/corsair --dfb:mode=1280x72
1254 root 2636 S udhcpc -i eth0
1270 root 4432 S /var/bin/oscam-1.10rc-svn-sh4-linux
1305 root 0 DW [STVID.InjecterT]
1306 root 0 SW [STVID[0].MPEG2P]
1307 root 0 DW [tfm_840bc380]
1308 root 0 DW [STVID[0].Produc]
1309 root 0 SW [STVID[0].Displa]
1310 root 0 SW [STVID[0].ErrorR]
1313 root 0 DW [tfm_840bc0e0]
1314 root 0 DW [tfm_842f7f60]
1315 root 0 DW [tfm_842f7f00]
1330 root 110m S < /var/bin/oscam-1.10rc-svn-sh4-linux
1345 root 0 SW [flush-31:0]
1346 root 2640 S -sh
1348 root 2640 R ps
--username [email protected]
--password ******
--alias 123456.no-ip.org
--update_period 10000
##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 mecha
--password spark
--alias openspa.no-ip.org
--update_period 60000
INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
I:INADYN: IP address for alias 'openspa.no-ip.org' needs update to '82.35.112.355'
I:INADYN: Alias 'openspa.no-ip.org' to IP '82.35.112.355' updated successful.
INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
I:INADYN: IP address for alias 'xcvbnm.no-ip.org' needs update to 'df.1aa.363g.9l'
I:INADYN: Alias 'xcvbnm.no-ip.org' to IP 'df.1aa.363g.9l' updated successful.
INADYN Help
INADYN is a dynamic DNS client. That is, it maintains the IP address
of a host name. It periodically checks whether the IP address of the current machine
(the external visible IP address of the machine that runs INADYN) has changed.
If yes it performs an update in the dynamic dns server.
Typical usage:
-for dyndns.org system:
inadyn -u username -p password -a my.registrated.name
-for freedns.afraid.org:
inadyn --dyndns_system [email protected] -a my.registrated.name,hash -a anothername,hash2
'hash' is extracted from the grab url batch file that is downloaded from freedns.afraid.org
Parameters:
'--help': help
'-h': help
'--username': your membername/ hash
'-u': your membername / hash
'--password': your password. Optional.
'-p': your password
'--alias': alias host name. this option can appear multiple times.
'-a': alias host name. this option can appear multiple times.
'--input_file': the file containing [further] inadyn options.The default config file, '/etc/inadyn.conf' is used if inadyn is called without any cmd line options.
'--ip_server_name': <srv_name[: port] local_url> - local IP is detected by parsing the response after returned by this server and URL.
The first IP in found in http response is considered 'my IP'.
Default value: 'checkip.dyndns.org /
'--dyndns_server_name': [<NAME>[: port]]
The server that receives the update DNS request.
Allows the use of unknown DNS services that accept HTTP updates.
If no proxy is wanted, then it is enough to set the dyndns system. The default servers will be taken.
'--dyndns_server_url': <name>
full URL relative to DynDNS server root.
Ex: /some_script.php?hostname=
'--dyndns_system': [NAME] - optional DYNDNS service type. SHOULD be one of the following:
-For dyndns.org DNS system: [email protected] OR [email protected] OR [email protected].
-For freedns.afraid.org DNS system: [email protected]
-For www.zoneedit.com DNS system: [email protected]
-For www.no-ip.com DNS system: [email protected]
-For generic DNS system: custom@http_svr_basic_auth
DEFAULT value is intended for default service at dyndns.org (most users): [email protected]
'--proxy_server': [NAME[: port]] - the http proxy server name and port. Default is none.
'--update_period': how often the IP is checked. The period is in [ms]. Default is about 1 min. Max is 10 days
'--update_period_sec': how often the IP is checked. The period is in [sec]. Default is about 1 min. Max is 10 days
'--forced_update_period': how often the IP is updated even if it is not changed. [in sec]
'--log_file': log file path abd name
'--background': run in background. output to log file or to syslog
'--verbose': set dbg level. 0 to 5
'--iterations': set the number of DNS updates. Default is 0, which means infinity.
'--syslog': force logging to syslog . (e.g. /var/log/messages). Works on **NIX systems only.
'--change_persona': after init switch to a new user/group. Parameters: <uid[:gid]> to change to. Works on **NIX systems only.
'--version': print the version number
#!/bin/sh
echo "Iniciando inadyn..."
/etc/init.d/inadyn start
#!/bin/sh
echo "Cerrando inadyn..."
/etc/init.d/inadyn stop
pero para eso esta el script /etc/init.d/inadyn donde esta puesto que tome como configuracion el inadyn.conf
en engima2, suele habre uno que inadyn_startup o inadyn_script.sh
