• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Custom IPv4 DDNS update (Dynu) failing "Malformed input to a URL function"

Scheduled Pinned Locked Moved DHCP and DNS
3 Posts 2 Posters 606 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jhg
    last edited by Jan 27, 2024, 12:18 AM

    Here's the log extract, what I need to know is whether this error originates in pfSense or Dynu's API. Log entries are in reverse time order (most recent first):

    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Dynamic DNS custom (): _update() ending.
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Curl error occurred: URL rejected: Malformed input to a URL function
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Dynamic DNS custom (): _checkStatus() starting.
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Response Data:
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Response Header:
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Sending request to: https://api.dynu.com/nic/update?hostname=[redacted]&password=[redacted]
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Dynamic DNS custom (): _update() starting.
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Dynamic DNS (): running get_failover_interface for wan. found re1
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Dynamic DNS custom (): [redacted] extracted from local system.
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Dynamic DNS custom (): _checkIP() starting.
    Jan 26 16:10:57     php-fpm     5116    /services_dyndns_edit.php: Dynamic DNS: updatedns() starting 
    
    

    pfSense CE on Beelink EQ12 (N100 CPU, dual 2.5Gbe Intel NICs)
    Hitron CODA56 - Comcast 2.5Gb cable

    V 1 Reply Last reply Jan 27, 2024, 9:39 AM Reply Quote 0
    • V
      viragomann @jhg
      last edited by Jan 27, 2024, 9:39 AM

      @jhg
      Which URL pfSense is sending is shown in the log.
      Request Dynu for the correct format.

      You can also check the URL with curl in the shell or in a web browser.

      J 1 Reply Last reply Jan 27, 2024, 7:06 PM Reply Quote 0
      • J
        jhg @viragomann
        last edited by Jan 27, 2024, 7:06 PM

        @viragomann I figured out the problem. The URL entered in the DDNS configuration page had a leading blank due to being copy-pasted from the Dynu web page.

        Enhancement suggestions:

        • Remove leading/trailing spaces from the URL before building the curl command.
        • Provide better error messages, and an option to enable verbose logging from the curl command

        pfSense CE on Beelink EQ12 (N100 CPU, dual 2.5Gbe Intel NICs)
        Hitron CODA56 - Comcast 2.5Gb cable

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received