Tutorials Linux DDNS Update Client INADYN

From WebOS Internals
Revision as of 02:12, 20 July 2009 by Raeb (talk | contribs) (initial from old wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Dynamic DNS client INADYN is well used around the world. It is typically found on OpenWRT, DD-WRT Routers, and now can be on your Palm Pre. The INADYN service maintain your IP address in relation to the DNS hosting of your choice. This should help friends reach services you may run in the future. Services such as Dropbear, lighttpd and SFTP. It's assumed that firewall configuration on WiFi connections will need attention.

Authentication through DNS matching can now be achieved.

Configuration details for DDNS services listed below

dyndns

easydns

afraid

no-ip

tzo

zoneedit

changeip

regfish

dnsomatic


Below are simple get-to syntax & conf examples.

Install the inadyn backend service:

 /opt/bin/ipkg-opt update ; /opt/bin/ipkg-opt install inadyn

/etc/event.d/webos-inadyn:

 description "inadyn Daemon for WebOS"
 author "oc80z"
 start on started
 nice 5
 respawn
 exec /opt/bin/inadyn --input_file /var/opt/etc/inadyn.conf

/var/opt/etc/inadyn.conf:

 dyndns_system default@freedns.afraid.org
 alias palmpre.evilvho.st
 dyndns_server_name freedns.afraid.org
 dyndns_server_url /dynamic/update.php?**<inserted afraid.org hash here>**
 update_period_sec 400
 verbose 0

Note: WiFi (eth0) may/will override Evdo (ppp0) DNS settings with the above code. Services on <1024 may/will be firewalled. However if UPnP is enabled we can utilize //libupnp// (The Universal Plug and Play (UPnP) SDK for Linux provides support for building UPnP-compliant control points, devices, and bridges)

See Tutorials_Linux_DDNS_Update_Client_wget if your dynamic DNS supports URL based updates (i.e. freedns.afraid.org) to ensure updates are always with your device's radio IP. This method also doesn't require an always-on daemon, and updates only when your IP changes.