How To Update DynDNS Server Immediately After xDSL Reconnection on Linux And Fast xDSL Reconnection Cómo actualizar DynDNS servidor inmediatamente después de xDSL reconexión en Linux y reconexión rápida xDSL
ADSL conenctions are flaky in Calcuta. ADSL conenctions son escamosa en Calcuta. They tend to go out often and stay off for prolonged periods. Tienden a salir con frecuencia y permanecer fuera durante largos períodos de tiempo. However whenever they come back I want to reconnect immediately and also update DynDNS servers so they point to proper IP address. Sin embargo, cuando regrese quiero volver de inmediato y también actualizar los servidores de DynDNS por lo que el punto adecuado para la dirección IP. On windows this happens automatically. En Windows esto ocurre automáticamente. However on Linux the only client available (the API is simple, you can write one yourself easily) is inadyn which updates, if necessary, periodcially, say every 10 minutes. Sin embargo en Linux el único cliente disponible (la API es simple, se puede escribir una tú mismo fácilmente) inadyn es que las actualizaciones, si es necesario, periodcially, por ejemplo cada 10 minutos. Secondly inadyn once run, continues to run by default, checking for changes every n minutes. En segundo lugar, una vez inadyn plazo, continúa funcionando de forma predeterminada, el control de cambios cada n minutos. I don’t want to check every n minutes. No quiero que verificar cada n minutos. What I really want is to check DSL connection every minute to see if its up. Lo que realmente queremos es comprobar la conexión ADSL cada minuto para ver si su. If the connection went down then I want to reconnect immediately and then update the DNS dyndns server. Si la conexión se redujo luego quiero volver de inmediato y luego actualizar el servidor DNS de DynDNS. I want to comply with their policies and update once every 15 days to prevent the domain from expiring, even if the IP address remains same. Quiero dar cumplimiento a sus políticas y actualización una vez cada 15 días para evitar el dominio de terminará, incluso si la dirección IP sigue siendo igual.
ifup is a script which can bring up your xDSL link. ifup es un script que puede llevar hasta su enlace xDSL. The command is: El comando es:
/sbin/ifup ppp0 / sbin / ifup ppp0
Note: ppp0 is the name of your ppp connection, ppp0 by default. Nota: ppp0 es el nombre de su conexión PPP, ppp0 por defecto.
ifup returns true if the connection was down and it successfully brought it back up. ifup devuelve true si la conexión se redujo con éxito y trajo de vuelta. Otherwise it returns false. De lo contrario devuelve false. This is a very important capability. Esta es una capacidad muy importante. The only time I need to update my server is when the xDSL connection was down and it was successfully brought up. La única vez que necesito para actualizar mi servidor es cuando la conexión xDSL se había reducido y que se ha criado. So I can simply run this script every minute: Por lo tanto, puede simplemente ejecutar este script cada minuto:
/sbin/ifup ppp0 && /usr/sbin/inadyn / sbin / ifup ppp0 & & / usr / sbin / inadyn
The crontab entry to make this happen looks like this on my system: La entrada crontab para hacer que esto ocurra tiene este aspecto en mi sistema:
* * * * * /sbin/ifup ppp0 && /usr/sbin/inadyn * * * * * / Sbin / ifup ppp0 & & / usr / sbin / inadyn
1 1 1,15 * * /usr/sbin/inadyn 1 1 1,15 * * / usr / sbin / inadyn
The problem is that inadyn continues to run by default. El problema es que inadyn continúa funcionando por defecto. So I modified the /etc/inadyn.conf to make it run only once. Por lo tanto, modificar el archivo / etc / inadyn.conf para hacerlo correr sólo una vez. My inadyn.conf file looks like this: Mi inadyn.conf archivo parecido a éste:
username nombre de usuario
password contraseña
alias alias
dyndns_system dyndns@dyndns.org dyndns_system dyndns@dyndns.org
iterations 1 iteraciones 1
Note the last line where I set the iterations to only one. Tenga en cuenta la última línea, donde el conjunto iteraciones a una sola. The defaul is zero, which stands for infinite iterations. El defaul es cero, lo que significa infinito iteraciones.
To summarize the end result I achieved is that my ADSL link is checked every minute and brought up, if down. Para resumir el resultado final logré conseguir es que mi conexión ADSL se verifica cada minuto y criado, si es hacia abajo. At the same time dyndns is updated with my new address, only if changed. Al mismo tiempo DynDNS se actualiza con mi nueva dirección, sólo si cambió. Also dyndns is updated every 15 days, irerspective of any change to ip address. También DynDNS se actualiza cada 15 días, irerspective de cualquier cambio en la dirección ip.
Filed under Filed under Headline News Headline News , How To Cómo , Linux , Linux Migration La migración Linux , Open Source Software Open Source Software , Web , Web 2.0 Web 2,0 , Web Services Web Services | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |



