特殊:Badtitle/NS100:DynamicDNS:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第130行: | 第130行: | ||
Example: | Example: | ||
https://help.ubuntu.com/community/DynamicDNS?action=AttachFile&do=get&target=dyndns.jpg | |||
Another example: | Another example: | ||
https://help.ubuntu.com/community/DynamicDNS?action=AttachFile&do=get&target=routerdyn.jpg | |||
---- | ---- |
2007年5月24日 (四) 09:32的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/DynamicDNS }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/af | • {{#if: UbuntuHelp:DynamicDNS|Afrikaans| [[::DynamicDNS/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/ar | • {{#if: UbuntuHelp:DynamicDNS|العربية| [[::DynamicDNS/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/az | • {{#if: UbuntuHelp:DynamicDNS|azərbaycanca| [[::DynamicDNS/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/bcc | • {{#if: UbuntuHelp:DynamicDNS|جهلسری بلوچی| [[::DynamicDNS/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/bg | • {{#if: UbuntuHelp:DynamicDNS|български| [[::DynamicDNS/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/br | • {{#if: UbuntuHelp:DynamicDNS|brezhoneg| [[::DynamicDNS/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/ca | • {{#if: UbuntuHelp:DynamicDNS|català| [[::DynamicDNS/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/cs | • {{#if: UbuntuHelp:DynamicDNS|čeština| [[::DynamicDNS/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/de | • {{#if: UbuntuHelp:DynamicDNS|Deutsch| [[::DynamicDNS/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/el | • {{#if: UbuntuHelp:DynamicDNS|Ελληνικά| [[::DynamicDNS/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/es | • {{#if: UbuntuHelp:DynamicDNS|español| [[::DynamicDNS/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/fa | • {{#if: UbuntuHelp:DynamicDNS|فارسی| [[::DynamicDNS/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/fi | • {{#if: UbuntuHelp:DynamicDNS|suomi| [[::DynamicDNS/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/fr | • {{#if: UbuntuHelp:DynamicDNS|français| [[::DynamicDNS/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/gu | • {{#if: UbuntuHelp:DynamicDNS|ગુજરાતી| [[::DynamicDNS/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/he | • {{#if: UbuntuHelp:DynamicDNS|עברית| [[::DynamicDNS/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/hu | • {{#if: UbuntuHelp:DynamicDNS|magyar| [[::DynamicDNS/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/id | • {{#if: UbuntuHelp:DynamicDNS|Bahasa Indonesia| [[::DynamicDNS/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/it | • {{#if: UbuntuHelp:DynamicDNS|italiano| [[::DynamicDNS/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/ja | • {{#if: UbuntuHelp:DynamicDNS|日本語| [[::DynamicDNS/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/ko | • {{#if: UbuntuHelp:DynamicDNS|한국어| [[::DynamicDNS/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/ksh | • {{#if: UbuntuHelp:DynamicDNS|Ripoarisch| [[::DynamicDNS/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/mr | • {{#if: UbuntuHelp:DynamicDNS|मराठी| [[::DynamicDNS/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/ms | • {{#if: UbuntuHelp:DynamicDNS|Bahasa Melayu| [[::DynamicDNS/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/nl | • {{#if: UbuntuHelp:DynamicDNS|Nederlands| [[::DynamicDNS/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/no | • {{#if: UbuntuHelp:DynamicDNS|norsk| [[::DynamicDNS/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/oc | • {{#if: UbuntuHelp:DynamicDNS|occitan| [[::DynamicDNS/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/pl | • {{#if: UbuntuHelp:DynamicDNS|polski| [[::DynamicDNS/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/pt | • {{#if: UbuntuHelp:DynamicDNS|português| [[::DynamicDNS/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/ro | • {{#if: UbuntuHelp:DynamicDNS|română| [[::DynamicDNS/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/ru | • {{#if: UbuntuHelp:DynamicDNS|русский| [[::DynamicDNS/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/si | • {{#if: UbuntuHelp:DynamicDNS|සිංහල| [[::DynamicDNS/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/sq | • {{#if: UbuntuHelp:DynamicDNS|shqip| [[::DynamicDNS/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/sr | • {{#if: UbuntuHelp:DynamicDNS|српски / srpski| [[::DynamicDNS/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/sv | • {{#if: UbuntuHelp:DynamicDNS|svenska| [[::DynamicDNS/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/th | • {{#if: UbuntuHelp:DynamicDNS|ไทย| [[::DynamicDNS/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/tr | • {{#if: UbuntuHelp:DynamicDNS|Türkçe| [[::DynamicDNS/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/vi | • {{#if: UbuntuHelp:DynamicDNS|Tiếng Việt| [[::DynamicDNS/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/yue | • {{#if: UbuntuHelp:DynamicDNS|粵語| [[::DynamicDNS/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/zh | • {{#if: UbuntuHelp:DynamicDNS|中文| [[::DynamicDNS/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/zh-hans | • {{#if: UbuntuHelp:DynamicDNS|中文(简体)| [[::DynamicDNS/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DynamicDNS | UbuntuHelp:DynamicDNS | {{#if: | :}}DynamicDNS}}/zh-hant | • {{#if: UbuntuHelp:DynamicDNS|中文(繁體)| [[::DynamicDNS/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:DynamicDNS|:DynamicDNS|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :DynamicDNS/zh | | {{#ifexist: DynamicDNS/zh | | {{#ifeq: {{#titleparts:DynamicDNS|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DynamicDNS|1|-1|}} | zh | | }}
Parent page: Internet and Networking
Dynamic DNS
Every computer which is attached to the internet has an IP address. DNS is the process of relating a name to an IP address so that a website or other service can be accessed using an easily-remembered named (like 'www.google.com'), rather than a number (like '192.168.0.1').
Most servers on the internet have a fixed IP address that never changes. This means that a 'static' DNS record can be set once such that it always redirects the DNS name to right place.
However, most home users will be assigned a dynamic IP address that will change periodically, or each time they connect to the internet. In the past this made it very difficult to make a home computer accessible from the broader Internet. But with an increasing number of "Dynamic DNS" service providers, this is not such a problem.
Dynamic DNS services offer you a DNS entry with a hostname of your choice. You are then responsible for updating the DNS entry whenver your IP address changes. This pages gives details about how to do that.
Registering with a Dynamic DNS provider
Dynamic DNS requires that a server somewhere on the internet keep track of 'where you are'. That is, it records your host name, and records what the IP address is that corresponds to your hostname.
Many Dynamic DNS provider offer a free service with a limited range of hostnames to choose from. Paid services will permit a larger selection of hostnames, including use of your own registered domain name.
So before you can get started using Dynamic DNS, you'll need to register with one of these such services. Here is a selection:
Upon registering, you will be provided with username and password, as well a hostname that you will be using as the DNS name that will allow external access to your machine.
Set up DNS Notification
Now that you have a DNS provider, you need to set up a way that your IP address will be updated whenever it is changed. There are two ways of doing this:
- using the built-in capabilities of your Cable or DSL modem, or
- using dynamic DNS software that you install on your computer
Try first to find out if your modem supports Dynamic DNS reporting/notification/updating. If your modem has a built-in 'website' you may find the necessary information by entering its IP address into your browser, for example http://10.1.1.1/ or http://192.168.01/
However, even if your modem does support dynamic DNS reporting, there are cases where you will need to use the second approach: perhaps you modem is too old, or perhaps you want the DNS entry to follow your *computer* around, rather than stay with your DSL/Cable connection.
Using your Computer to perform Dynamic DNS Notification
There are several alternatives. You may need to add the Ubuntu Universe to your set of software repositories. See InstallingSoftware for all the details.
inadyn
Install the inadyn
package using Synaptic Package manager, then:
The following will allow your Ubuntu Linux machine to be accessible anywhere that you are given an externally-accessible IP address. This includes most ISPs but excludes many office LANs.
First edit the file /etc/inadyn.conf
:
gksudo gedit /etc/inadyn.conf
It should contain something like to the following:
--username myusername --password mypassword --update_period 60000 --alias myhost.dyndns.org --background
Now test that it works by typing
sudo /usr/sbin/inadyn
Next, add inadyn to your 'crontab':
export EDITOR=gedit sudo crontab -e
Edit the file to add the following additional line:
@reboot /usr/sbin/inadyn
Then save and edit the editor. Verify using
sudo crontab -l
When you reboot, you should see indyn listed when you type
ps -A | grep inadyn
You should be able to log in to your Dynamic DNS provider's website and verify that the DNS entry is being updated. Certainly this is possible with www.dyndns.org, in any case. Alternatively you can type your hostname into a service like http://www.dnsstuff.com/.
ddclient
More details required here. The documentation is good however, and there is a Ubuntu package for ddclient in the Ubuntu Universe, apparently.
http://ddclient.sourceforge.net/?page=0
no-ip
This is another Dynamic DNS reporting client.
sudo no-ip -C Please enter the login/email string for no-ip.com: <your_login> Please enter the password for user 'your_login': <your_password> Please enter an update interval:[30] <interval time in minutes> Do you wish to run something at successful update?[N] <N>
Next, start the no-ip client
sudo no-ip
Using your Modem for Dynamic DNS Reporting
Here are some example screenshots from DSL modems that support dynamic DNS reporting:
Example:
Another example: