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

    FreeDNS with CARP results in interface IP not CARP IP [WORKAROUND]

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 537 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.
    • G Offline
      gerdesj
      last edited by

      I have a gateway group setup that follows CARP addresses instead of the associated interface addresses.  I use FreeDNS to update an A record.  It appears to work correctly and the Cached IP shows the correct CARP IP.  However using dig against an external DNS server shows that the actual address registered is the IP for the WAN interface.

      I found this: https://freedns.afraid.org/dynamic/ :

      You can also (alternatively) perform updates like this:

      http://[USERNAME]:[PASSWORD]@freedns.afraid.org/nic/update?hostname=[DOMAIN]&myip=[IP]
      (https/SSL is also optionally supported/available)

      I tried to do a packet capture to see what form the update is taking but it is encrypted, which is good but I can't use it to debug the problem.  I've also grepped around in /usr/local/www but I'm no programmer 8)

      EDIT: Workaround:

      Create a Custom Dynamic DNS

      https://username:passwword@freedns.afraid.org/nic/update?hostname=host.example.co.uk&myip=%IP%
      

      Result Match:

      Updated 1 host(s)|ERROR: Address %IP% has not changed.
      
      1 Reply Last reply Reply Quote 0
      • M Offline
        musicwizard
        last edited by

        there is something easier also.

        go to https://freedns.afraid.org/dynamic/v2/

        You'll see a url there copy that url.

        Make a custom entry.

        Fill in the url at update url and click save. No need for username or password or resulting match.

        Not sure how often its updated this way. but it works.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.