Hurricane Electric's IPv6 Tunnel Broker Forums

DNS.HE.NET Topics => General Questions & Suggestions => Topic started by: spil on January 26, 2012, 05:50:46 AM

Title: Dynamic DNS information
Post by: spil on January 26, 2012, 05:50:46 AM
First of all: great service. Thanks for providing it! Hope that this posts helps people when setting up the he.net DynDNS service.

During setup I noticed the following:
Code: [Select]
https://dyn.example.com:password@dyn.dns.he.net/nic/update?hostname=dyn.example.com

The response that you receive when updating a record is (for automatic processing)
The ip-address returned is the address that will be registered in the he.net dns servers for the hostname.
I use this to process the result and emit an email if my ip-address has changed (from cron):
Code: [Select]
https://dyn.example.com:password@dyn.dns.he.net/nic/update?hostname=dyn.example.com | grep -qs good && echo IP-address changed!NOTE: This is using FreeBSD grep which, according to the manpage, behaves differently with the -s switch than GNU grep.