Skip to content

Instantly share code, notes, and snippets.

View zhiwei-xu's full-sized avatar
💤
Sleeping

Zhiwei Xu zhiwei-xu

💤
Sleeping
View GitHub Profile
@zhiwei-xu
zhiwei-xu / update-ip.sh
Last active May 7, 2022 08:07 — forked from RunningDroid/update-ip.sh
FreeDNS updater script with IPv4 and IPv6 support
#!/bin/sh
#FreeDNS updater script with IPv4 and IPv6 support
# (Initially) based on update.sh by Adam Dean: https://freedns.afraid.org/scripts/update.sh.txt
# requirements:
# curl
# dig
# posix-compatible shell
# Note: http://whatismyipaddress.com/api says:
# "You may programmatically query that server but limit queries to no more