We will have DDNS support with DNSOMATIC?

Comments

10 comments

  • Avatar
    Firewalla

    Are you trying to use your own domains with DDNS?   If you are, all you need to do is to create an alias (CNAME) from your domain to the DDNS name under firewalla.  

    You can access firewalla DDNS name by tapping on + (MORE)  button, then tap on DDNS to get the name you can alias to..

     

    How to add CNAME:

    https://aws.amazon.com/premiumsupport/knowledge-center/route-53-create-alias-records/

    https://www.godaddy.com/help/add-a-cname-record-19236

     

    0
    Comment actions Permalink
  • Avatar
    Hoby Brenner

    I would like to see some support of a few other DDNS providers.  Currently Google Domains does not support CNAME like the others.

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    CNAME is a pretty standard way of implementing pointers in DNS systems.  So far, pretty much all DNS providers support this

    Google Domains is here:

     https://support.google.com/domains/answer/9211383?hl=en

     

    0
    Comment actions Permalink
  • Avatar
    Lewis B

    Hi,

    I'm interested in this feature as a normal home user, my Asus router did this job and currently the firewalla gold can't.

    Is there no scope to get this function added?

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    Any ideas why you need another DDNS service?  you can either use the DDNS address from firewalla directly, or map it to another domain in the CNAME section.

    0
    Comment actions Permalink
  • Avatar
    Lewis B

    Hi,

    Well I don't own a domain so that's not an option and I use OPENDNS for other features

    0
    Comment actions Permalink
  • Avatar
    Lewis B

    Surely it wouldn't take much to interact with the DNSOMATIC APIs? You already use OPENDNS for the family protection....

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    There is a DDNS service on the Firewalla already, you can tap on the +, then tap on DDNS to get the domain.  Is that what you are after?

    0
    Comment actions Permalink
  • Avatar
    Lewis B

    Nope, sorry but I'm looking for the ability to update another DDNS with the public IP or interface with DNSOMATIC. Its a fairly common feature in all consumer routers.

    https://teamengr.com/2019/06/17/opendns-dynamic-ip-updating-via-asus-routers/

    0
    Comment actions Permalink
  • Avatar
    Lewis B

    @AzagraMac If you've not found a workaround, I've made a little script that works on Firewalla Gold to update DNSOMATIC

    You'll need SSH into the Firewalla Gold and make the following directories .

    mkdir ~/.firewalla/config/post_main.d/
    mkdir ~/.firewalla/config/post_main.d/tmp
    vi ~/.firewalla/config/post_main.d/update_dnsomatic.sh
    #!/bin/sh
    HOSTNAME="all.dnsomatic.com"
    USER="<USERNAME>" #Enter in your OpenDNS Username
    PASS="<PASSWORD>" #Enter in your OPENDNS Password, doesn't handle complex symbols very well, tested with ! which works
    TMPFILE="/home/pi/.firewalla/config/post_main.d/tmp/dnsomatic.oldip"
    DATENOW=$(/bin/date)
    IP=$(/usr/bin/curl -s http://myip.dnsomatic.com)

    if [ -r "$TMPFILE" ]; then
    OLDIP=$(cat $TMPFILE)
    if [ "$OLDIP" = "$IP" ]; then
    /bin/echo "IPs match; no update"
    exit 0
    else
    RETURN=$(/usr/bin/curl -s -m 60 -k -u ${USER}:${PASS} https://updates.dnsomatic.com/nic/update?hostname=${HOSTNAME}&myip=$IP&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG)
    /bin/echo "Return message of DNS-O-Matic : " $RETURN
    /bin/echo $RETURN | grep "good" > /dev/null 2>&1
    if [ "$?" -eq "0" ]; then
    /bin/echo $IP > $TMPFILE
    else
    /bin/echo "" > $TMPFILE
    fi
    fi
    else
    /usr/bin/touch $TMPFILE
    fi

    Once you've saved the file you'll need to make it executable

    chmod +x ~/.firewalla/config/post_main.d/update_dnsomatic.sh

    If you want to schedule this to be daily at 0100 you'll need to make a new file

    echo "0 1 * * * /home/pi/.firewalla/config/post_main.d/update_dnsomatic.sh" > ~/.firewalla/config/user_crontab

    and finally reboot the Firewalla Gold to add that into the main Crontab job

    2
    Comment actions Permalink

Please sign in to leave a comment.