Hardware Reference
In-Depth Information
2.
Start by querying the DNS server of the dynamic DNS service that you're
using. For FreeDNS, that DNS server is called ns1.afraid.org . Type the
following command but replace [gimmepi.mooo.com] with your subdomain
and domain you picked:
pi@raspberrypi ~ $ nslookup [gimmepi.mooo.com] ns1.afraid.org
3.
If the previous query returned your external IP as expected, you can continue
to query Google's DNS server ( 8.8.8.8 ) to see if your domain name has
successfully propagated across the Internet:
pi@raspberrypi ~ $ nslookup [gimmepi.mooo.com] 8.8.8.8
Just be patient with DNS, it can take a while for updates to reach your
Internet Service Provider's name servers.
Updating your domain name
So how do we make sure that your new domain name stays up to date when your
external IP changes? A few home routers have started to include support to update
DDNS services, but it's not hard to set up on the Pi. The following are the steps to
update the domain name:
1.
The inadyn client has good support for FreeDNS, install it with the
following command:
pi@raspberrypi ~ $ sudo apt-get install inadyn
2.
Next we need to obtain the hash string for our domain name. On the
FreeDNS site, click on the Dynamic DNS link in the menu on the left. Find
your record on the page, right-click on the Direct URL link and copy the link
address, then paste the link into a temporary text document. Your hash is the
string of characters after update.php?
3.
Now try running the inadyn client manually to ensure everything is
working, but replace [mydomain] and [myhash] with yours:
pi@raspberrypi ~ $ inadyn -a [mydomain],[myhash] --dyndns_system
default@freedns.afraid.org --verbose 5
4.
To have inadyn run automatically and in the background after the next
reboot, add the following command to /etc/rc.local :
inadyn --background -a [mydomain],[myhash] --dyndns_system
default@freedns.afraid.org
 
Search WWH ::




Custom Search