#18411: DDNS script not working
------------------------+----------------------------------
  Reporter:  anonymous  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  Chaos Calmer (trunk)
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:  DDNS
------------------------+----------------------------------

Comment (by anonymous):

 wget is working fine if u run the command wget manually i dont get any
 error:


 {{{
 /usr/bin/wget -q -O /tmp/ddns_2437.dat -Y off http://xxxx:xxxx@dynupdate
 .no-ip.com/nic/update?hostname=xxxx.no-ip.org&myip=127.0.0.1
 2>/tmp/ddns_2437.err
 }}}

 Also, why is it trying to update with the IP '127.0.0.1' but it detects
 the WAN IP correctly...

 Here is the log from another instance:


 {{{
 173604       : ************ ************** ************** **************
  173604  note : PID '8307' started at 2014-11-26 17:36
  173604       : uci configuraion:
 ddns.myddns_ipv4.domain=xxxx.no-ip.org
 ddns.myddns_ipv4.enabled=1
 ddns.myddns_ipv4.ip_interface=pppoe-wan
 ddns.myddns_ipv4.ip_source=interface
 ddns.myddns_ipv4.password=xxxx
 ddns.myddns_ipv4.service_name=no-ip.com
 ddns.myddns_ipv4.username=xxxx
 ddns.myddns_ipv4=service
  173604       : verbose mode  : 0 - run normal, NO console output
  173605       : check interval: 600 seconds
  173605       : force interval: 259200 seconds
  173605       : retry interval: 60 seconds
  173605       : retry counter : 5 times
  173605       : No old process
  173605       : last update: never
  173605       : Waiting 10 seconds for interfaces to fully come up
  173615       : Detect registered/public IP
  173615       : #> /usr/bin/nslookup xxxx.no-ip.org  >/tmp/ddns_8307.dat
 2>/tmp/ddns_8307.err
  173615       : Registered IP '95.20.xx.xx' detected
  173615  info : Starting main loop at 2014-11-26 17:36
  173615       : Detect local IP
  173615       : #> ifconfig pppoe-wan >/tmp/ddns_8307.dat
 2>/tmp/ddns_8307.err
  173615       : Local IP '95.20.xx.xx' detected on interface 'pppoe-wan'
  173615       : Forced Update - L: '95.20.xx.xx' == R: '95.20.xx.xx'
  173615       : parsing script '/usr/lib/ddns/update_no-ip.sh'
  173615       : sending dummy IP to 'no-ip.com'
  173615       : #> /usr/bin/wget -q -O /tmp/ddns_8307.dat -Y off
 http://xxxx:[email protected]/nic/update?hostname=xxxx.no-
 ip.org&myip=127.0.0.1 2>/tmp/ddns_8307.err
  173616 ERROR : Busybox Wget Error: '1'
  173616       :
  173616  WARN : Transfer failed - retry 1/5 in 60 seconds
  173716       : #> /usr/bin/wget -q -O /tmp/ddns_8307.dat -Y off
 http://xxxx:[email protected]/nic/update?hostname=xxxx.no-
 ip.org&myip=127.0.0.1 2>/tmp/ddns_8307.err
  173717 ERROR : Busybox Wget Error: '1'
  173717       :
  173717  WARN : Transfer failed - retry 2/5 in 60 seconds
  173817       : #> /usr/bin/wget -q -O /tmp/ddns_8307.dat -Y off
 http://xxxx:[email protected]/nic/update?hostname=xxxx.no-
 ip.org&myip=127.0.0.1 2>/tmp/ddns_8307.err
  173818 ERROR : Busybox Wget Error: '1'
 }}}

 You can see

 {{{
 173615       : Local IP '95.20.xx.xx' detected on interface 'pppoe-wan'
 173615       : Forced Update - L: '95.20.xx.xx' == R: '95.20.xx.xx'
 }}}

 So the IP is detected correctly but it tries to update with the IP
 127.0.0.1 for some reason.



 {{{
 root@Principal:~# ping dynupdate.no-ip.com
 PING dynupdate.no-ip.com (8.23.224.120): 56 data bytes
 64 bytes from 8.23.224.120: seq=0 ttl=55 time=177.637 ms
 64 bytes from 8.23.224.120: seq=1 ttl=55 time=177.546 ms
 64 bytes from 8.23.224.120: seq=2 ttl=55 time=177.501 ms
 64 bytes from 8.23.224.120: seq=3 ttl=55 time=177.526 ms
 ^C
 --- dynupdate.no-ip.com ping statistics ---
 4 packets transmitted, 4 packets received, 0% packet loss
 round-trip min/avg/max = 177.501/177.552/177.637 ms
 root@Principal:~# nslookup dynupdate.no-ip.com
 Server:    127.0.0.1
 Address 1: 127.0.0.1 localhost

 Name:      dynupdate.no-ip.com
 Address 1: 8.23.224.120 dynupdate.no-ip.com
 root@Principal:~# wget -O - http://checkip.dyndns.org
 Connecting to checkip.dyndns.org (216.146.38.70:80)
 <html><head><title>Current IP Check</title></head><body>Current IP
 Address: 95.20.228.74</body></html>
 -                    100%
 
|************************************************************************************************************************|
 104   0:00:00 ETA

 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/18411#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to