Difference between revisions of "Dynamic DNS updater"
From NAS-Central Buffalo - The Linkstation Wiki
Buffalomavin (Talk | contribs) |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Template:Articles}} | ||
''<font color=red><small> | ''<font color=red><small> | ||
This article | This article | ||
Line 6: | Line 7: | ||
− | Sites like www.dyndns.org allow you to use names like mysite.homelinux.com mysite.dyndns.org instead of your IP address, even if your IP address changes all the time as is often the case with DSL connections. | + | Sites like www.dyndns.org allow you to use names like mysite.homelinux.com mysite.dyndns.org instead of your IP address, even if your IP address changes all the time as is often the case with DSL connections. For a list of available Free DNS services you can try these [http://dnslookup.me/dynamic-dns/ Dynamic DNS] providers. |
Line 24: | Line 25: | ||
* You’ll get a few questions from the installer (don't remember the exact order): | * You’ll get a few questions from the installer (don't remember the exact order): | ||
− | **The interface: "web". | + | **The interface: "web". You'll need to change that later. |
**username:"MyOwnDyndnsAccount" | **username:"MyOwnDyndnsAccount" | ||
**password:"MyOwnDyndnsPassword" | **password:"MyOwnDyndnsPassword" | ||
**Dyndns hosts list: use commas “,” between the Dyndns host names: mysite1.homelinux.com,mysite2.homelinux.com,mysite3.homelinux.com" | **Dyndns hosts list: use commas “,” between the Dyndns host names: mysite1.homelinux.com,mysite2.homelinux.com,mysite3.homelinux.com" | ||
− | + | * you'll need to modify the file directly for the "use=" line, here’s a sample that works | |
− | + | (change "use if=..." to "use=web, web=checkip.dyndns.org"): | |
− | * | + | |
Linkstation:/etc# more ddclient.conf | Linkstation:/etc# more ddclient.conf | ||
pid=/var/run/ddclient.pid | pid=/var/run/ddclient.pid | ||
protocol=dyndns2 | protocol=dyndns2 | ||
− | use=web | + | use=web, web=checkip.dyndns.org |
server=members.dyndns.org | server=members.dyndns.org | ||
login=MyOwnDyndnsAccount | login=MyOwnDyndnsAccount | ||
Line 42: | Line 42: | ||
mysite1.homelinux.com,mysite2.homelinux.com,mysite3.homelinux.com | mysite1.homelinux.com,mysite2.homelinux.com,mysite3.homelinux.com | ||
+ | Here is another example for a ddclient.conf, with additional settings for [http://www.opendns.com/ OpenDNS]: | ||
+ | # /etc/ddclient.conf | ||
+ | daemon=300 # check every 300 seconds | ||
+ | syslog=yes # log update msgs to syslog | ||
+ | pid=/var/run/ddclient.pid | ||
+ | ssl=yes | ||
+ | use=web, web=checkip.dyndns.com/, web-skip='Current IP Address: ' | ||
+ | #DynDNS for [dyndns_host_name, e.g. bob.ath.cx or bob.dyndns.org] | ||
+ | server=members.dyndns.org | ||
+ | protocol=dyndns2 | ||
+ | login=MyOwnDyndnsAccountName | ||
+ | password=MyOwnDyndnsPassword | ||
+ | mysite.homelinux.com | ||
+ | #Dynamic IP for OpenDNS account | ||
+ | server=updates.opendns.com | ||
+ | protocol=dyndns2 | ||
+ | login=MyOpenDNSAccountName | ||
+ | password=MyOpenDNSPassword | ||
+ | MyOpenDNSLabelName #You an find it at https://www.opendns.com/dashboard/networks/ | ||
[[Category:Debian]] | [[Category:Debian]] | ||
<center><font color=red>''Originally by flavoie from linkstationwiki.org''</font></center> | <center><font color=red>''Originally by flavoie from linkstationwiki.org''</font></center> |
Latest revision as of 02:14, 25 June 2011
This article
Based on work by flavoie
at Linkstationwiki.org
Sites like www.dyndns.org allow you to use names like mysite.homelinux.com mysite.dyndns.org instead of your IP address, even if your IP address changes all the time as is often the case with DSL connections. For a list of available Free DNS services you can try these Dynamic DNS providers.
- Get an account at www.dyndns.org Write down your dyndns.org username and password, you’ll need it for the dyndns updater configuration. Just for simplicity, let’s assume you created “MyOwnDyndnsAccount” with a “MyOwnDyndnsPassword” password.
- Create a Dynamic DNS entries at dyndns.org.
example: 3 names mysite1.homelinux.com mysite2.homelinux.com mysite3.homelinux.com
- Get on your Linkstation using telnet or ssh apt-get install ddclient
apt-get install ddclient
- You’ll get a few questions from the installer (don't remember the exact order):
- The interface: "web". You'll need to change that later.
- username:"MyOwnDyndnsAccount"
- password:"MyOwnDyndnsPassword"
- Dyndns hosts list: use commas “,” between the Dyndns host names: mysite1.homelinux.com,mysite2.homelinux.com,mysite3.homelinux.com"
- you'll need to modify the file directly for the "use=" line, here’s a sample that works
(change "use if=..." to "use=web, web=checkip.dyndns.org"):
Linkstation:/etc# more ddclient.conf pid=/var/run/ddclient.pid protocol=dyndns2 use=web, web=checkip.dyndns.org server=members.dyndns.org login=MyOwnDyndnsAccount password=MyOwnDyndnsPassword mysite1.homelinux.com,mysite2.homelinux.com,mysite3.homelinux.com
Here is another example for a ddclient.conf, with additional settings for OpenDNS:
# /etc/ddclient.conf daemon=300 # check every 300 seconds syslog=yes # log update msgs to syslog pid=/var/run/ddclient.pid ssl=yes use=web, web=checkip.dyndns.com/, web-skip='Current IP Address: ' #DynDNS for [dyndns_host_name, e.g. bob.ath.cx or bob.dyndns.org] server=members.dyndns.org protocol=dyndns2 login=MyOwnDyndnsAccountName password=MyOwnDyndnsPassword mysite.homelinux.com #Dynamic IP for OpenDNS account server=updates.opendns.com protocol=dyndns2 login=MyOpenDNSAccountName password=MyOpenDNSPassword MyOpenDNSLabelName #You an find it at https://www.opendns.com/dashboard/networks/