We will have DDNS support with DNSOMATIC?
The DNSOMATIC service, allows you to use other DDNS services in routers, by default Firewalla assigns you a DDNS , but of course? and if you already have another DDNS service, in my case I have another one with DuckDNS , but what if we could use the DDNS service?
As we can see in the screenshots, the DNSOMATIC service groups together several DDNS, we only need to have configured one of them, it could well be Firewalla's DDNS.
And in the router, in this example an Asus RT-AX58U router, allows us to choose the DDNS of DNSOMATIC, if we have set the DDNS of Firewalla, we can make use of it and not depend on other DDNS to access our network safely.
Firewalla, are you thinking of implementing this service?
More info: https://www.dnsomatic.com/docs/api


-
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
-
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
-
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/
-
@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
fiOnce 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
Please sign in to leave a comment.
Comments
10 comments