Update dynamic IP address at DynDNS.org
A perl based client to update your dynamic IP address at DynDNS.org (or other dynamic DNS services such as Hammernode, Zoneedit or EasyDNS), thus allowing you and others to use a fixed hostname (myhost.dyndns.org) to access your machine.
This client supports both the dynamic and (near) static services, MX setting, and alternative host.
It caches the address, and only attempts the update if the address actually changes.
Dynamic DNS services currently supported include:
2006.07.22: v3.6.7
using ddclient with ppp
using ddclient with cron
using ddclient with dhcpcd-1.3.17
using ddclient with dhclient
you can update your DynDNS entry automatically every time your lease is obtained or renewed by creating an executable file named:
/etc/dhclient-exit-hooks
ie.:
cp sample-etc_dhclient-exit-hooks /etc/dhclient-exit-hooks
Edit /etc/dhclient-exit-hooks to change any options required.
#!/bin/sh ###################################################################### ## $Header: /cvsroot/ddclient/ddclient/sample-etc_dhclient-exit-hooks,v 1.1.1.1 2004/08/13 22:29:17 wimpunk Exp $ ###################################################################### # The /etc/dhclient-enter-hooks script is run by the ISC DHCP client's standard # update script whenever dhclient obtains or renews an address. PATH=/usr/sbin:${PATH} case "$new_ip_address" in 10.*) ;; 172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*) ;; 192.168.*) ;; *) logger -t dhclient IP address changed to $new_ip_address ddclient -daemon=0 -syslog -use=ip -ip=$new_ip_address >/dev/null 2>&1 ;; esac
Note: If your adsl modem is acting like a DHCP server, then this would not work. I have the following line in /etc/dhclient-exit-hooks, which proofs that when I get a new external IP, the /etc/dhclient-exit-hooks is not called.
logger -t dhclient IP address changed
enable debugging and verbose messages.
$ ddclient -daemon=0 -debug -verbose -noquiet
Do you need to specify a proxy? If so, just add a proxy=your.isp.proxy to the ddclient.conf file.
Define the IP address of your router with fw=xxx.xxx.xxx.xxx in /etc/ddclient/ddclient.conf and then try
$ ddclient -daemon=0 -query
to see if the router status web page can be understood.
Need support for another router/firewall?
Define the router status page yourself with:
fw=url-to-your-router's-status-page fw-skip=any-string-preceding-your-IP-address
ddclient does something like this to provide builtin support for common routers. For example, the Linksys routers could have been added with:
fw=192.168.1.1/Status.htm fw-skip=WAN.*?IP Address
OR Send me the output from:
$ ddclient -geturl {fw-ip-status-url} [-login login [-password password]]
and I'll add it to the next release!
ie. for my fw/router I used:
$ ddclient -geturl 192.168.1.254/status.htm
Some broadband routers require the use of a password when ddclient accesses its status page to determine the router's WAN IP address. If this is the case for your router, add
fw-login=your-router-login fw-password=your-router-password
to the beginning of your ddclient.conf file. Note that some routers use either 'root' or 'admin' as their login while some others accept anything.
Date: Wed, 25 Sep 2002 02:10:42 +0000 (UTC) Newsgroups: comp.os.linux.networking
> I would like to use a good dynamic dns working with redhat.
If you mean your internet IP, I use no-ip.com names. Seems to be reliable and quick to update (60 sec DNS cache expire). They have Unix binary source that can update your name(s) and can group names together, so one contact updates all names in the group (virtual web hosting, etc.). It can be run once automatically from /etc/ppp/ip-up (or ip-up.local) whenever a ppp or pppoe connection comes up (or probably from dhcp scripts for cable modem), or as a deamon if you are behind router/proxy with unknown internet IP (grabs IP you connnect from).
Although, I personally hacked the firmware of my Dlink DI-704 gateway so I can monitor my adsl IP from a Perl daemon script and just post updates when it changes.
David Efflandt
> If you mean your internet IP, I use no-ip.com names. Seems to be reliable > and quick to update (60 sec DNS cache expire). They have Unix binary
It is my experience too. Just note that you don't have to take no-ip.com suffix, there's a selection at http://www.no-ip.com .
> ... > for cable modem), or as a deamon if you are behind router/proxy with > unknown internet IP (grabs IP you connnect from).
Yep. That's what I do. You can run the daemon and relax. If you are curious, this is the site http://ratnaweera.no-ip.com
Visvanath.
MyServer.org can provide you with a World-Class DNS infrastructure for all of your domains.
Brief run down of features:
Free sub domain (yourname.myserver.org) We currently have 17 domains you can choose from.
New accounts are setup instantly upon sign up.
Windows application Dynamic update utility. (Windows 95-XP)
Web based Dynamic update utility (for Mac and Linux users)
No banner adds or nag-ware, totally free sub-domain service.
Web and E-Mail based technical support.
Reliability features such as UPS and generator backup, daily tape backup, 24 hour server monitoring and redundant internet connections.
With MyServer.org FREE, you get a fully qualified sub-domain (yourname.myserver.org), which allows others out on the Internet the ability to access your computer with a friendly name.
You can run all the popular server software such as File sharing servers, IRC servers, Personal Web Server, Mail Servers , FTP Servers, etc provided your ISP does not block ports such as 80,25,110 .
In addition, all the tools you will need to manage your sub-domain from any computer running Windows 95-2000/XP connected to the Internet are included. If you are running any other operating system such as Linux or MacOS we do have a Web Login IP update form you can use.
Before signing up for our FREE Services we suggest that you use our automated port sniffer to identify whether or not your Boradband Internet provider is currently blocking ports on your connection.
This tool will detect the presence of your web server, mail server, etc. It will not however sniff for the presence of an open port without anything running on it, you must have either a mail, web or other server type actively listening on your server. In order for the tool to work properly you must also have the port open and accessible on your routeable IP address. If you are using any type of firewall\router appliance you should open these ports before starting the detection process. If you need assistance checking your situation please feel free to post on our support forum. We are more than happy to assist you. If it is determined that your provider is blocking ports we do have another solution that will work around this common issue called Port Forwarding, for more information on these services please check out our services link.
MyServer.org myfileserver.net DNSIP.net Mario.org myfileserver.com myipaddress.net Peggys.net ImADemocrat.org HDTVNut.com WidescreenHD.TV MitsubishiHD.TV CompuTramp.com IP2dns.org broadbanddns.com USArmyReserve.com ww4.us WWWHost.us My-Domain.us Postal-Service.us postip.net portsniffer.net ultrafastdns.net zipitover.com digitalbop.com portrelaynet portredirect.com UTTERLYCOOL.COM