PDA

Bekijk de volledige versie : inadyn fails and how to fix it



seff
26-08-2008, 18:00
Hi,

I have Oleg's firmware (wl500gx-1.9.2.7-10) on my Asus 500gx router. I installed inadyn package (version 1.96.2) using:

ipkg install inadyn

And configured my dyndns.org account. But it did not work and I had to fix it with config file. I had "BAD REQUEST" errors.

1. I had to add "/" url to checkip.dyndns.org IP resolution
2. I had to add "/nic/update?" to members.dyndns.org request

Why? I have no idea why the current package is not configured with it (default). Here is my configuration:

cat /opt/etc/inadyn.conf
username test
password test
alias test.dyndns.org
background
syslog
update_period_sec 600
log_file /var/tmp/inadyn.log
verbose 5
ip_server_name checkip.dyndns.org /
dyndns_server_name members.dyndns.org
dyndns_server_url /nic/update?
dyndns_system dyndns@dyndns.org

And run it with:
/opt/bin/inadyn --input_file /opt/etc/inadyn.conf

References:
http://www.dyndns.com/developers/nicupdate-api.pdf
http://www.dyndns.com/support/kb/using_inadyn_with_dyndns_services.html

Request format:
GET /nic/update?
system=statdns&
hostname=yourhost.ourdomain.ext,yourhost2.dyndns.o rg&
myip=ipaddress&
wildcard=OFF&
mx=mail.exchanger.ext&
backmx=NO&
offline=NO
HTTP/1.0

Good luck!
Seff