Skip to content

Instantly share code, notes, and snippets.

@nall
nall / syno_ddns_nsupdate.pl
Last active November 22, 2019 14:14
Crontab script for Synology boxes. Updaes a DNS BIND server when hostname or WAN IP changes. Requires the Synology DNSServer package to be installed (but doesn't need to be running).
#!/opt/bin/perl
use warnings;
use strict;
# Copyright (c) 2013 Jon Nall, STUNTAZ!!! All rights reserved.
#
# This script is intended to be run on a Synology NAS. It attempts
# to determine the external IP where the NAS is connected and then
# checks to see if it needs to update a DNS record. The server is
# updated if any of these are true: