Search:  
Gentoo Wiki

Dynamic_DNS


Please format this article according to the guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article


Contents

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.

Prerequisites

Adding your domain in Zoneedit
Adding your domain in Zoneedit
Adding a host for your domain
Adding a host for your domain
DNS information provided
DNS information provided
Note:

You can register your domain at your NIC and later delegate the domain to Zoneedit's DNS servers.

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

Using ddclient

See the separate ddclient article.

Using a Router

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.

Note: If there's more than one IP address on the status page, set web-skip to the text preceding the IP Address you want.
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

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:

  1. http://192.168.1.1/
  2. (some settings page)
  3. (XX change setting)

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]

Netgear

Every thing seems to work fine out of the box behind a Netgear router.

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

See also

Using noip-updater

Retrieved from "http://www.gentoo-wiki.info/Dynamic_DNS"

Last modified: Thu, 02 Oct 2008 10:58:00 +0000 Hits: 7,962