I have no idea how to accomplish this, but I have my DNS hosted through gandi.net, and I would like to implement DynDNS (or something similar).
Any help is appreciated, I just have no clue where to start.
Code: Select all
emerge -p ddclientCode: Select all
/etc/init.d/ddclient startCode: Select all
rc-update add ddclient default

Code: Select all
Dear Oracle+Dyn Customer:
This is a friendly reminder that your Oracle+Dyn account "USERNAME" has one or more services that will automatically renew in 7 days or less:
You have 1 DynDNS Pro service(s) about to be renewed. ...
For 20 years, we have been pleased to offer our Dynamic DNS (DynDNS Pro) service to now more than 5 million customers. We could never have predicted the overwhelming demand that we would see when we launched the service in the late 1990s. With our priority always the stability of the network and ease of use for our customers, we continue to make investments in the infrastructure that supports Dynamic DNS (DynDNS Pro). From time to time, we make price adjustments to help fund those necessary investments. The new 1 year price of Dynamic DNS (DynDNS Pro) is $55. For further visibility into the current pricing, please log into your account.
If you want to view or change your renewal settings, you may do so here.
If you have any questions, please contact billing or visit our support section.
Thank you,
Oracle+DynCode: Select all
#!/bin/bash
# This script gets the external IP of your systems then connects to the Gandi
# LiveDNS API and updates your dns record with the IP.
#check for three command line arguements
if [ "$#" -ne 3 ]; then
echo "This script required three arguements: The API key, the domain, and the subdomain"
exit 1
fi
# Gandi LiveDNS API KEY
API_KEY=$1
# Domain hosted with Gandi
DOMAIN=$2
# Subdomain to update DNS
SUBDOMAIN=$3
# Get external IP address
EXT_IP=$(curl -s ifconfig.me)
#Get the current Zone for the provided domain
CURRENT_ZONE_HREF=$(curl -s -H "X-Api-Key: $API_KEY" https://dns.api.gandi.net/api/v5/domains/$DOMAIN | jq -r '.zone_records_href')
# Update the A Record of the subdomain using PUT
curl -D- -X PUT -H "Content-Type: application/json" \
-H "X-Api-Key: $API_KEY" \
-d "{\"rrset_name\": \"$SUBDOMAIN\",
\"rrset_type\": \"A\",
\"rrset_ttl\": 1800,
\"rrset_values\": [\"$EXT_IP\"]}" \
$CURRENT_ZONE_HREF/$SUBDOMAIN/A