How to update dynamic DNS IP address

http://paste.ubuntu.com/6546594/

#!/bin/bash

# Credenziali
username='miao'
password='miao'
dominio='miao.no-ip.miaao'

# Trovo l'IP
ip=`wget -q -O - http://domaintools.reyboz.it/what-is-my-ip.php`

query="http://$username:$password@dynupdate.no-ip.com/nic/update?hostname=$dominio&myip=$ip"

# Invio l'IP
wget -q -O - $query

echo $query
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s