DDNS not working with freedns.afraid.org

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
FreeDNS.afraid.org gives instructions on how to manually attempt the update. If you use this manually from the command line, is it successful?

My immediate guess is that you do not have a DNS server or gateway set up in TrueNAS, as that is the usual explanation for external services not working.
 

ArielX

Cadet
Joined
Jul 12, 2022
Messages
1
I have look at other threads and I have not found a solution that works
I am trying to connect freedns to my truenas server
and on the monitor I have connected it says failed to get IP address for default@freedns.afraid.org, giving up!
Hi jhon, how are you? Please, try the following solution that works for me running TrueNAS 12U4.1
  1. Go to TrueNAS UI (User Interface) option (DynamicDNS) and edit the settings
  2. Set the following values
    1. Provider: freedns.afraid.org
    2. CheckIP Server SSL: unchecked
    3. CheckIP Server: leave it in blank
    4. CheckIP Path: leave it in blank
    5. SSL: unchecked
    6. Domain Name (and here is the magic)
      1. Enter to the following link after log in your account of freedns -> https://freedns.afraid.org/api
      2. When the site mention "Available API Interfaces: XML | ASCII", you should select "ASCII"
        1. 1657659879988.png
      3. The browser will open another tab with the following info:
        1. sitename.domain|111.111.111.111|https://freedns.afraid.org/dynamic/update.php?AsaddfSFRRTHrWEFDScsdweer43r32wefFWEFWwfwef
      4. You should copy all the text after the question symbol (We will call that "Hash")
    7. Once you have all that info, you will be able to fill the "Domain Name" values at follow:
      1. sitename.domain,Hash (remember the comma between domain and Hash)
        1. For example: hope.towork.com,AsaddfSFRRTHrWEFDScsdweer43r32wefFWEFWwfwef
    8. Username: the UserID of your account (You may find it in "preferences" form)
    9. Password: You should know it :D
    10. Confirm Password: the same as before
    11. Update Period: In my particular case, default settings is OK
    12. Save the setting
  3. Go to FreeDNS site and select "DynamicDNS" option just to see your current IP of your domain
  4. Turn on the "Dynamic DNS" truenas service
  5. And refresh the FreeDNS page to see if the domain IP was updated to the correct one (Sometimes you need to wait to "Period Time" value elapsed. If you don't want wait, change the "Period Time" to 10 seconds, check again if the IP address changed and once all working fine, change the "Period Time" for last time to production value)
  6. Remember tick the checkbox "Start Automatically" to initialize the service automatically on every start up of the server
I was doing a little bit of research and I found the following article in which my solution was based...In case it still no working, you should give a try to the cronjob workaround (using wget alternative that freedns gives you).

Hope to help a bit! Good luck...
 
Top