DDNS Updater DDNS Updater 2: IP doesn't update

Status
Für weitere Antworten geschlossen.

abroz

Benutzer
Mitglied seit
02. Feb 2016
Beiträge
5
Punkte für Reaktionen
0
Punkte
0
Hi!

I appologize for the english.
I have a problem with DDNS Updater v2.
I have couple of domains with Namchead DNS service enabled.

Everyday when IP address changes, DDNS Updater fails to update them.

all hosts are configured in namcheap as @ + site.com (@ as host and domain is one of the domains).

Here is part of the log with errors.
Rich (BBCode):
2016-02-02 20:34:58	DEBUG	: Update of @, because ip changed from 0 to 93.136.48.122!
2016-02-02 20:34:58	DEBUG	: computed vars:
2016-02-02 20:34:58	DEBUG	: host: @ - id: 2, last update: 2016-02-01 18:13:50, ip-system: ipv4, ip-set method: auto, offline: no, offline method: customip, offline shutdown: no, offline script: no, script after update: no, fake-ip-workaround: no, update: 0 -> 93.136.48.122, wait time: 0s, force-update: no
2016-02-02 20:34:58	DEBUG	: --------------
2016-02-02 20:34:58	DEBUG	: Build updatevars:
2016-02-02 20:34:58	DEBUG	: protocol: namecheap
2016-02-02 20:34:58	DEBUG	: module: enom
2016-02-02 20:34:58	DEBUG	: mxfields: 0
2016-02-02 20:34:58	DEBUG	: authmethod: url
2016-02-02 20:34:58	DEBUG	: id: 2
2016-02-02 20:34:58	DEBUG	: hostgroupby: 
2016-02-02 20:34:58	DEBUG	: tags: 
2016-02-02 20:34:58	DEBUG	: 	password: password deleted
2016-02-02 20:34:58	DEBUG	: 	ip: 93.136.48.122
2016-02-02 20:34:58	DEBUG	: 	host: @,@
2016-02-02 20:34:58	DEBUG	: 	domain: enlhr.com
2016-02-02 20:34:58	DEBUG	: server: https://dynamicdns.park-your-domain.com
2016-02-02 20:34:58	DEBUG	: passtag: password
2016-02-02 20:34:58	DEBUG	: iptag: ip
2016-02-02 20:34:58	DEBUG	: static_params: 
2016-02-02 20:34:58	DEBUG	: ssl: 1
2016-02-02 20:34:58	DEBUG	: req_method: GET
2016-02-02 20:34:58	DEBUG	: ips: 
2016-02-02 20:34:58	DEBUG	: 	ipv4: 93.136.48.122
2016-02-02 20:34:58	DEBUG	: 	ipv6: n/a
2016-02-02 20:34:58	DEBUG	: shutdown: 0
2016-02-02 20:34:58	DEBUG	: logintag:  
2016-02-02 20:34:58	DEBUG	: ipv6: 0
2016-02-02 20:34:58	DEBUG	: script: /update
2016-02-02 20:34:58	DEBUG	: offline_ip: 46.38.245.163
2016-02-02 20:34:58	DEBUG	: --------------
2016-02-02 20:34:58	DEBUG	: Execute update call:
2016-02-02 20:34:58	DEBUG	: https://dynamicdns.park-your-domain.com/update?password=passworddeleted&ip=93.136.48.122&host=%40%2C%40&domain=enlhr.com
2016-02-02 20:34:59	DEBUG	: return: '<?xml version="1.0"?><interface-response><Command>SETDNSHOST</Command><Language>eng</Language><ErrCount>1</ErrCount><errors><Err1>No Records updated. A record not Found;</Err1></errors><ResponseCount>1</ResponseCount><responses><response><ResponseNumber>380091</ResponseNumber><ResponseString>No updates; A record not Found;</ResponseString></response></responses><Done>true</Done><debug><![CDATA[]]></debug></interface-response>'
2016-02-02 20:34:59	DEBUG	: 0 - http:200
2016-02-02 20:34:59	DEBUG	: 2: 
2016-02-02 20:34:59	DEBUG	: 	code: no records updated. a record not found;
2016-02-02 20:34:59	DEBUG	: 	host: @
2016-02-02 20:34:59	DEBUG	: 0: 
2016-02-02 20:34:59	DEBUG	: 	host: @
2016-02-02 20:34:59	DEBUG	: 	code: no records updated. a record not found;
2016-02-02 20:34:59	DEBUG	: --------------
2016-02-02 20:34:59	DEBUG	: Check result:
2016-02-02 20:35:00	DEBUG	: --------------
2016-02-02 20:35:00	DEBUG	: @: status found: no records updated. a record not found;, ip set: 0, last successful update: 2016-02-01 18:13:50, wait time: 0s, next update attempt: 2016-02-02 20:39:59
2016-02-02 20:35:00	DEBUG	: --------------
2016-02-02 20:35:00	DEBUG	: @: status found: no records updated. a record not found;, ip set: 0, last successful update: 2016-02-01 18:14:05, wait time: 0s, next update attempt: 2016-02-02 20:40:00
2016-02-02 20:35:01	DEBUG	: ***Debug end***
2016-02-02 20:35:01	DEBUG	: ===============================

In configuration there is no error, but according to this log he is looking for host @,@

But when I force update with hand, it works 99% of the time (sometimes I have to try multiple times, or deinstall + delete configuratio and reinstall and try again).
 

Fusion

Benutzer
Sehr erfahren
Mitglied seit
06. Apr 2013
Beiträge
14.135
Punkte für Reaktionen
898
Punkte
424
You should mask your public IP, unless it already is an old one.

Why apologizing for writing in English? If your native tongue is German however, just write in German, as it is a .de forum after all.
If your native tongue is something else besides German or English you can also try your luck or we just continue in English. :)

I assume you just entered the wrong string in your configuration for "Host" within the DDNS Updater 2 dialogue.
The namecheap guides can be disturbing. They use a plain @ symbol within their web-UI, BUT you still need to use the real hostnames for DDNS Updater 2.
e.g. see here https://www.namecheap.com/support/k...x/43/11/how-do-i-setup-a-host-for-dynamic-dns

So DDNS Updater 2 still needs "sub" as the "Host" (e.g. if the DDNS setup is on sub.domain.tld)

Edit:
When you want to update the domain.tld, not a sub-domain, i would either try leaving Host empty within DDNS Updater 2 or maybe set "@" or similar.

Does the update work if you use their suggested URL as written here?
https://www.namecheap.com/support/k...se-the-browser-to-dynamically-update-hosts-ip
 
Zuletzt bearbeitet:

abroz

Benutzer
Mitglied seit
02. Feb 2016
Beiträge
5
Punkte für Reaktionen
0
Punkte
0
Hi!

Thank you for your answer.

I'm trying to update domain.tld - so I used both here and in their DNS record @ - but if you look at the URL DDNS Updater generates, it changes @ to @,@ :

%2Fupdate%3Fhost%3D%40%2C%40%26ip%3D

/update?host=@,@&ip=domain.tld

OK - I'll try to leave host name empty (it if permits me) and see what happens today during IP release...
Thank you for your help!!!

EDIT: It doesn't allow empty host name...
I've made backup of the configuration, just to check if everything is saved correctly and json of config looks ok (to me of course) :)

"provider":"namecheap.com","iptype":"auto","useroption1":false,"host":"@","static":false,

But I was looking into host option only :)
 
Zuletzt bearbeitet:

Fusion

Benutzer
Sehr erfahren
Mitglied seit
06. Apr 2013
Beiträge
14.135
Punkte für Reaktionen
898
Punkte
424
You said forced update works like 99% of the time (i must have over read this at first). Any differences in the log then?
This would rather indicate instability within their servers and it would decrease the probability that the character encoding might be a problem.

You could also try the old DDNS updater 1 in parallel if there is any difference.

Or maybe ping @QTip as author of the software if he has any further ideas.
 

abroz

Benutzer
Mitglied seit
02. Feb 2016
Beiträge
5
Punkte für Reaktionen
0
Punkte
0
Yes, there is a difference in the log.

When update is forced, it sends correct hostname:

Rich (BBCode):
2016-02-02 21:48:38	DEBUG	: --------------
2016-02-02 21:48:39	DEBUG	: Force update of @ by user!
2016-02-02 21:48:39	DEBUG	: computed vars:
2016-02-02 21:48:39	DEBUG	: host: @ - id: 2, last update: 2016-02-01 18:13:50, ip-system: ipv4, ip-set method: auto, offline: no, offline method: customip, offline shutdown: no, offline script: no, script after update: no, fake-ip-workaround: no, update: 0 -> 93.136.48.122, wait time: 0s, force-update: yes
2016-02-02 21:48:39	DEBUG	: --------------
2016-02-02 21:48:39	DEBUG	: Build updatevars:
2016-02-02 21:48:39	DEBUG	: protocol: namecheap
2016-02-02 21:48:39	DEBUG	: module: enom
2016-02-02 21:48:39	DEBUG	: mxfields: 0
2016-02-02 21:48:39	DEBUG	: authmethod: url
2016-02-02 21:48:39	DEBUG	: logintag:  
2016-02-02 21:48:39	DEBUG	: shutdown: 0
2016-02-02 21:48:39	DEBUG	: offline_ip: 46.38.245.163
2016-02-02 21:48:39	DEBUG	: ipv6: 0
2016-02-02 21:48:39	DEBUG	: script: /update
2016-02-02 21:48:39	DEBUG	: req_method: GET
2016-02-02 21:48:39	DEBUG	: ssl: 1
2016-02-02 21:48:39	DEBUG	: iptag: ip
2016-02-02 21:48:39	DEBUG	: static_params: 
2016-02-02 21:48:39	DEBUG	: ips: 
2016-02-02 21:48:39	DEBUG	: 	ipv4: 93.136.48.122
2016-02-02 21:48:39	DEBUG	: 	ipv6: n/a
2016-02-02 21:48:39	DEBUG	: server: https://dynamicdns.park-your-domain.com
2016-02-02 21:48:39	DEBUG	: tags: 
2016-02-02 21:48:39	DEBUG	: 	domain: ebroz.xyz
2016-02-02 21:48:39	DEBUG	: 	password: U2FsdGVkX1+6W4taLcsPEeeg0HndeK6KldyIPZsUijVdoZheoJ0s2aEa+KVi2n9y
zncaDoDk8m1fLdLlgUVaDQ==
2016-02-02 21:48:39	DEBUG	: 	host: @
2016-02-02 21:48:39	DEBUG	: 	ip: 93.136.48.122
2016-02-02 21:48:39	DEBUG	: passtag: password
2016-02-02 21:48:39	DEBUG	: hostgroupby: 
2016-02-02 21:48:39	DEBUG	: id: 2
2016-02-02 21:48:39	DEBUG	: --------------
2016-02-02 21:48:39	DEBUG	: Execute update call:
2016-02-02 21:48:39	DEBUG	: https://dynamicdns.park-your-domain...xyz&password=password&host=@&ip=93.136.48.122
2016-02-02 21:48:39	DEBUG	: return: '<?xml version="1.0"?><interface-response><Command>SETDNSHOST</Command><Language>eng</Language><IP>93.136.48.122</IP><ErrCount>0</ErrCount><ResponseCount>0</ResponseCount><Done>true</Done><debug><![CDATA[]]></debug></interface-response>'
2016-02-02 21:48:39	DEBUG	: 0 - http:200
2016-02-02 21:48:39	DEBUG	: 2: 
2016-02-02 21:48:39	DEBUG	: 	host: @
2016-02-02 21:48:39	DEBUG	: 	code: ok
2016-02-02 21:48:39	DEBUG	: --------------
2016-02-02 21:48:39	DEBUG	: Check result:
2016-02-02 21:48:39	DEBUG	: --------------
2016-02-02 21:48:39	DEBUG	: @: status found: ok, ip set: 93.136.48.122, last successful update: 2016-02-02 21:48:39, wait time: 0s, 
2016-02-02 21:48:41	DEBUG	: ***Debug end***

So the difference is that when doing autoupdate it sends @,@ as host (, and with manual, it sends @.

Error string:
https://dynamicdns.park-your-domain...ed&ip=93.136.48.122&host=@,@&domain=enlhr.com

https://dynamicdns.park-your-domain...xyz&password=password&host=@&ip=93.136.48.122

What is strange (besides tis host issue) that order of URL string is not same:
- automatic update is following order - password, IP, host, domain,
- manual update - domain, password, host and IP
 

Fusion

Benutzer
Sehr erfahren
Mitglied seit
06. Apr 2013
Beiträge
14.135
Punkte für Reaktionen
898
Punkte
424
I kinda out of ideas. No idea why the URL composing would be different between auto and force.

Only thing you could try to build the URL yourself and enter it via Browser directly to see if a change in the order of the parameters is of any influence.
 

abroz

Benutzer
Mitglied seit
02. Feb 2016
Beiträge
5
Punkte für Reaktionen
0
Punkte
0
Thank you for all of the help.
As I susspected, problem is with hostname @,@ that gets pulled when in automatic mode.

If I use original URL from first log file, I get following error:

SETDNSHOSTeng1No Records updated. A record not Found;1380091No updates; A record not Found;true

But if I remove ",@" from end of URL, I get following:

SETDNSHOSTeng93.136.48.12200true

So, there seams to be a problem with DDNS Updater 2, namecheap provider and @ as host name.

Will have to try and ping @QTip to see if there is problem with code/bug.
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
Hi,

DDNS Updater 2 grouped all the hosts of the same provider, as long as no group has been set in the provider management of those sites. With force update the grouping is not used.
Please go to Settings & Configuration - provider management - "namecheap.com" - field definitions and set the grouping to "domain", "host" and "ip" - then save the provider. With this setting, the grouping is active only if all 3 fields are the same for each host.
 
Zuletzt bearbeitet:

abroz

Benutzer
Mitglied seit
02. Feb 2016
Beiträge
5
Punkte für Reaktionen
0
Punkte
0
Thank you very much for this help. It's now working great!!!!
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat