Skip to content

Instantly share code, notes, and snippets.

@dlasher
dlasher / juniper-dyndns-events
Created April 22, 2025 22:31
Juniper SRX DynDNS event config that works with any HTTP/HTTPS based updater service
set event-options policy dyn-dns-updater-1 events [ snmp_trap_link_up every-month ]
set event-options policy dyn-dns-updater-1 attributes-match snmp_trap_link_up.interface-name matches pp0.0
set event-options policy dyn-dns-updater-1 then execute-commands commands "file delete /var/tmp/dyndnsupdate.log"
set event-options policy dyn-dns-updater-1 then execute-commands commands "ping 1 count 20 interval 1 wait 1"
set event-options policy dyn-dns-updater-1 then execute-commands commands "file copy http://<USERNAME>:<PASSWORD>@dynupdate.no-ip.com/nic/update?hostname=<DNS-NAME> /var/tmp/dyndnsupdate.log"
set event-options policy dyn-dns-updater-1 then execute-commands output-format text
set event-options traceoptions file eventd size 1m world-readable
set event-options traceoptions flag all
##
## Tested with duckdns, tunnelbroker, and many others.
@dlasher
dlasher / keybase.md
Created December 10, 2019 23:58
keybase.md

Keybase proof

I hereby claim:

  • I am dlasher on github.
  • I am dlasher (https://keybase.io/dlasher) on keybase.
  • I have a public key ASDWzjC8mUmqe-3byZxx7LYI3x2qT8TPeVBP5-snWFwVvQo

To claim this, I am signing this object: