Project

General

Profile

Actions

Bug #16112

open

Mythic Beasts DynDNS

Added by Mauro Sahanaja 16 days ago. Updated 4 days ago.

Status:
In Progress
Priority:
Normal
Category:
Dynamic DNS
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.7.2
Affected Architecture:

Description

Hi Team,

Curious if there's a way to update the DynDNS for the Mythic Beasts API.
The only reference I could find was from a few years ago which seems to use the v1 API.
Currently they have a v2: [[https://www.mythic-beasts.com/support/api/dnsv2/tutorial]]

As it currently stands I keep getting errors when items already exist:

Mar 31 11:07:50 php-fpm 64596 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting
Mar 31 11:07:50 php-fpm 64596 /services_dyndns_edit.php: Dynamic DNS mythicbeasts (itemName.domain.com): _checkIP() starting.
Mar 31 11:07:50 php-fpm 64596 /services_dyndns_edit.php: Dynamic DNS mythicbeasts (itemName.domain.com): xx.xxx.xx.x extracted from local system.
Mar 31 11:07:50 php-fpm 64596 /services_dyndns_edit.php: Dynamic DNS (itemName.domain.com): running get_failover_interface for wan. found pppoe0
Mar 31 11:07:50 php-fpm 64596 /services_dyndns_edit.php: Dynamic DNS mythicbeasts (itemName.domain.com): _update() starting.
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: HTTP/1.1 400 Bad input
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: Date: Mon, 31 Mar 2025 09:07:50 GMT
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: Server: Apache/2.4.62 (Debian)
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: Content-Length: 72
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: Content-Type: application/json
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: X-Mythic-Backend: pyapi_pyapi_cam_a
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: X-Varnish: 87473809
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: Age: 0
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: Via: 1.1 varnish (Varnish/7.1)
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: X-Jobs: Like a challenge? Try http://jobs.mythic-beasts.com !
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: X-Clacks-Overhead: GNU Terry Pratchett
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: X-Mythic-Frontend: www-cam-f.mythic-beasts.com
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: X-Mythic-Proxy: xx.xx.xx.xx
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: Strict-Transport-Security: max-age=31536000
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header: Connection: keep-alive
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header:
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Header:
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Response Data: {
Mar 31 11:07:51 php-fpm 64596 "errors": [
Mar 31 11:07:51 php-fpm 64596 "Duplicate record 'itemName 300 A xx.xxx.xx.x'"
Mar 31 11:07:51 php-fpm 64596 ]
Mar 31 11:07:51 php-fpm 64596 }

Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Dynamic DNS mythicbeasts (itemName.domain.com): _checkStatus() starting.
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: phpDynDNS (itemName): ( Error message: )
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php:
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Dynamic DNS mythicbeasts (itemName.domain.com): _checkStatus() ending.
Mar 31 11:07:51 php-fpm 64596 /services_dyndns_edit.php: Dynamic DNS mythicbeasts (itemName.domain.com): _update() ending.

It works when manually removing the records from the Mythic beasts DNS. Then it will create the record.
However, as soon as that's done, the errors come back as the records already exist.

I do not have a pull request or anything. Honestly I do not know where this API is setup.


Files

16112.patch (1.16 KB) 16112.patch Christopher Cope, 04/12/2025 02:07 PM
Actions

Also available in: Atom PDF