I attached the patch file here in case my copy/pasting or mailer messed up the spaces in the last line.

On 21-Nov-11 1:28 am, Bogdan Roman wrote:
FreeDNS has an oddity in that the update url requires the string after
"?" to be an auth token (the SHA1 of the "username|password" string) but
there is also a hidden 2nd argument to specify an IP address:
"&address=[IP]". Without it, the FreeDNS service will always update the
IP to the IP that called the update URL visible by FreeDNS, regardless
of the options chosen in OpenWRT. Patch provided below.

The OpenWRT documentation should also state that in the case of FreeDNS,
the "username" field is ignored and the "password" field must contain
the auth token and not the actual password. The auth token is obtained
from the FreeDNS website.

Signed-off-by: Bogdan Roman <ab...@cam.ac.uk>

Index: feeds/packages/net/ddns-scripts/files/usr/lib/ddns/services
===================================================================
--- feeds/packages/net/ddns-scripts/files/usr/lib/ddns/services
(revision 28425)
+++ feeds/packages/net/ddns-scripts/files/usr/lib/ddns/services (working
copy)
@@ -18,7 +18,7 @@
"noip.com"
"http://[USERNAME]:[PASSWORD]@dynupdate.no-ip.com/nic/update?hostname=[DOMAIN]&myip=[IP]";


#freedns.afraid.org is weird, you just need an update code, for which we
use the password variable
-"freedns.afraid.org"
"http://freedns.afraid.org/dynamic/update.php?[PASSWORD]";
+"freedns.afraid.org"
"http://freedns.afraid.org/dynamic/update.php?[PASSWORD]&address=[IP]";

#### ADD YOURS HERE!
######################################################################################

# #
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Index: feeds/packages/net/ddns-scripts/files/usr/lib/ddns/services
===================================================================
--- feeds/packages/net/ddns-scripts/files/usr/lib/ddns/services (revision 28425)
+++ feeds/packages/net/ddns-scripts/files/usr/lib/ddns/services (working copy)
@@ -18,7 +18,7 @@
 "noip.com"             
"http://[USERNAME]:[PASSWORD]@dynupdate.no-ip.com/nic/update?hostname=[DOMAIN]&myip=[IP]";
 
 #freedns.afraid.org is weird, you just need an update code, for which we use 
the password variable
-"freedns.afraid.org"   
"http://freedns.afraid.org/dynamic/update.php?[PASSWORD]";
+"freedns.afraid.org"   
"http://freedns.afraid.org/dynamic/update.php?[PASSWORD]&address=[IP]";
 
 #### ADD YOURS HERE! 
######################################################################################
 #                                                                              
                           #
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to