Dynamic DNS
From Gentoo Linux Wiki
Please format this article according to the guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article
Contents |
[edit] Introduction
This HOWTO details the steps required to have your own domain without a static IP address and without having to pay for anything more than the domain name itself. This HOWTO also details different ways to use dynamic dns, particularly DynDNS.
[edit] Prerequisites
- An Internet connection
- A domain (for ex. www.midominio.com.ar) registered in your country's NIC with Zoneedit's DNS
- You must follow the steps provided from your NIC
- When you need to enter the DNS servers to delegate the domain, just hold it there and continue registering the domain in your Zoneedit's Account
- A free account from Zoneedit
- Here you must add your domain and they will give the DNS IP and names to use for delegation of the domain
- Then you have to add those DNS servers in your country NIC for your domain (go back to the NIC web page and continue the registering process)
You can register your domain at your NIC and later delegate the domain to Zoneedit's DNS servers.
[edit] Software needed
Now you will need to install a program that will update your Zoneedit account every time your IP address changes. There are a few choices including Ddclient and ez-ipupdate.
See Ddclient for the installation and configuration of that program. The steps for installing and configuring ez-ipupdate are here:
First, emerge it:
# emerge -v net-dns/ez-ipupdate
Then create your configuration file:
| File: /etc/ez-ipupdate.conf |
service-type=zoneedit
server=dynamic.zoneedit.com
user=username:password
interface=eth1 # Your external Interface
host=www.midominio.com.ar # you must add this host at your
# zoneedit account the first time
# Do not change the lines below
cache-file=/tmp/ez-ipup
pid-file=/var/run/ez-ipupdate.pid
|
Note that in June 2008 ZoneEdit changed their server name from www.zoneedit.com to dynamic.zoneedit.com, so make sure to include the 'server' line to ez-ipupdate.conf.
Then just add ez-ipupdate to start on boot:
# rc-update add ez-ipupdate default
[edit] Using ddclient
See the separate ddclient article.
[edit] Using a Router
[edit] General
With many routers, you can simply query your router's status page to determine your public (WAN) ip address. This method has several minor benefits, such as reducing the number of requests on checkip.dyndns.org. For most home firewall/routers, you do not need its admin password just to discover your WAN IP address.
| File: /etc/ddclient/ddclient.conf |
use=web, web=http://192.168.0.1/status.htm, web-skip='IP Address' |
Tested with: U.S. Robotics 8004 on ddclient 3.6.3
[edit] Linksys
If you are using ddclient, uncomment this information in ddclient.conf:
| File: /etc/ddclient/ddclient.conf |
use=linksys, fw=192.168.1.1:80 # via Linksys's internet FW fw-login=user, fw-password=secret # FW login and password |
Tested with: LinkSys Model: XXXXX
To set up Dynamic DNS from the router interface:
- http://192.168.1.1/
- (some settings page)
- (XX change setting)
[edit] D-Link
Dynamic DNS DDNS Enabled Disabled Server Address : members.dyndns.org
Host Name: FQDN registered with dyndns
Username: dyndns user name
Password: dyndns password
UPDATE: D-Link claims that this feature does not work as of 20051031. [1]
[edit] Netgear
Every thing seems to work fine out of the box behind a Netgear router.
[edit] DrayTek Vigor2600Ge
This router has direct support for dyndns.com. Works fine.
Or just change /etc/ddclient.conf to use: use=web, web=http://whatismyip.org
instead of use= whatever
