Project

General

Profile

Actions

Bug #11146

closed

Domeneshop DDNS not updating cache IP

Added by Idar Lund 12 months ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Dynamic DNS
Target version:
Start date:
12/09/2020
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.5.0
Affected Architecture:

Description

Background information: https://redmine.pfsense.org/issues/10826 and https://github.com/pfsense/pfsense/pull/4420

Version: 2.5.0-DEVELOPMENT from today (9th December 2020).

The domeneshop DDNS is updating the IP at Domeneshop, but the service is not updating cache IP so that it becomes green in the pfsense webUI. Not sure what does the "updating cache file", but maybe it's not triggered because Domeneshop answers with an empty 204?
Here's log from both domeneshop and freedns:

Domeneshop:
Dec 9 15:34:20 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting
Dec 9 15:34:20 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS domeneshop (x.x.no): 8x.x.x.x8 extracted from Check IP Service
Dec 9 15:34:20 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS (x.x.no): running get_failover_interface for wan. found vtnet0
Dec 9 15:34:20 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS domeneshop (x.x.no): _update() starting.
Dec 9 15:34:21 php-fpm 2908 /services_dyndns_edit.php: Response Header: HTTP/2 204
Dec 9 15:34:21 php-fpm 2908 /services_dyndns_edit.php: Response Header: server: nginx
Dec 9 15:34:21 php-fpm 2908 /services_dyndns_edit.php: Response Header: date: Wed, 09 Dec 2020 14:34:21 GMT
Dec 9 15:34:21 php-fpm 2908 /services_dyndns_edit.php: Response Header:
Dec 9 15:34:21 php-fpm 2908 /services_dyndns_edit.php: Response Header:
Dec 9 15:34:21 php-fpm 2908 /services_dyndns_edit.php: Response Data:
Dec 9 15:34:21 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS domeneshop (x.x.no): _checkStatus() starting.
Dec 9 15:34:21 php-fpm 2908 /services_dyndns_edit.php:

FreeDNS:
Dec 9 15:38:47 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting
Dec 9 15:38:47 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS freedns (y.y.no): 8x.x.x.x8 extracted from Check IP Service
Dec 9 15:38:47 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS (y.y.no): running get_failover_interface for wan. found vtnet0
Dec 9 15:38:48 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS freedns (y.y.no): 8x.x.x.x8 extracted from Check IP Service
Dec 9 15:38:48 php-fpm 2908 /services_dyndns_edit.php: Dynamic Dns (y.y.no): Current WAN IP: 8x.x.x.x8 No Cached IP found.
Dec 9 15:38:48 php-fpm 2908 /services_dyndns_edit.php: DynDns (y.y.no): Dynamic Dns: cacheIP != wan_ip. Updating. Cached IP: 0.0.0.0 WAN IP: 8x.x.x.x8 Initial update.
Dec 9 15:38:48 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS freedns (y.y.no): _update() starting.
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: HTTP/1.1 200 OK
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Server: nginx
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Date: Wed, 09 Dec 2020 14:38:49 GMT
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Content-Type: text/plain;charset=UTF-8
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Transfer-Encoding: chunked
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Connection: keep-alive
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Vary: Accept-Encoding
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Cache-Control: no-store, no-cache, must-revalidate
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Cache-Control: post-check=0, pre-check=0
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Pragma: no-cache
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: Expires: Mon, 26 Jul 1997 05:00:00 GMT
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header: X-Cache: MISS
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header:
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Header:
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Response Data: Updated y.y.no to 8x.x.x.x8 in 0.029 seconds
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS freedns (y.y.no): _checkStatus() starting.
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: Dynamic DNS freedns (y.y.no): 8x.x.x.x8 extracted from Check IP Service
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wanfreedns'y.y.no'1.cache: 8x.x.x.x8
Dec 9 15:38:50 php-fpm 2908 /services_dyndns_edit.php: phpDynDNS (y.y.no): (Success) IP Address Changed Successfully!


Files

Screenshot from 2020-12-09 15-45-30.png (35.2 KB) Screenshot from 2020-12-09 15-45-30.png Idar Lund, 12/09/2020 09:01 AM
domeneshop dyndns working.png (31.2 KB) domeneshop dyndns working.png cacheip working Idar Lund, 12/15/2020 02:08 AM
Actions #2

Updated by Idar Lund 12 months ago

Viktor Gurov wrote:

Fix:
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/83

that was a really quick bugfix :)
will test this out tonight!

EDIT: I don't have access to your internal gitlab. How can I install this merge request to test it out?

Actions #3

Updated by Jim Pingle 12 months ago

  • Status changed from New to Pull Request Review
Actions #4

Updated by Idar Lund 12 months ago

I would very much like to help out in testing the PR/MR, but I don't have access to your internal gitlab. Let me know if you want me to test it out.

Actions #5

Updated by Renato Botelho 12 months ago

  • Status changed from Pull Request Review to Feedback
  • Assignee changed from Renato Botelho to Viktor Gurov

PR has been merged. Thanks!

Actions #6

Updated by Viktor Gurov 12 months ago

  • % Done changed from 0 to 100
Actions #7

Updated by Idar Lund 12 months ago

Applied patch (f2b03cdafec3a3c54f311f53ce73b07a10fdece4) with "System/Patches" and can confirm that it's working.
Base image used: 2.5.0.a.20201214.0250

Actions #8

Updated by Viktor Gurov 12 months ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF