Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: jerryyap on February 24, 2004, 08:24:56 AM

Title: How to update dynamic dns?
Post by: jerryyap on February 24, 2004, 08:24:56 AM
Hi,
I have a 6.0 server behind a router in server only mode.
My ISP account uses dynamic IP and the ISP changes the IP frequently, so I've created an account in dyndns.org. When I manually update my account, I can reach my server.

From what I've read on the forum, it seems that automatic IP update will  work only if:
a) I configure the box to use server and gateway mode, and enter the dyndns.org username and password, or
b) I use the rpm for easydns and register an account with EasyDNS.

I've tried looking in the forum for a how-to for 6.0 compatible package that can be used with dyndns.org to enable my 6.0 server to update the IP automatically, but so far have not found any. If you know of one, please direct me to the link.

Appreciate your help. Thank you.
Title: How to update dynamic dns?
Post by: Boris on February 24, 2004, 10:55:31 PM
c) check if your router supports dyndns service and configure it or get anothe router which does support it.
Most cheap residential routers do.
Title: router
Post by: jerryyap on February 25, 2004, 08:25:51 PM
Too bad, the existing router does not support dynamic dns. However, it is very stable under high traffic and has served me well.

Will consider getting a router that supports dynamic dns.

Thank you for your suggestion.

Jerry
Title: How to update dynamic dns?
Post by: Boris on February 25, 2004, 10:10:01 PM
Check also if your router's maker has a firmware update with this feature. It is widely used and many brands include it.
You also could add the second NIC to your server and switch it to server-gateway mode. SME built-in firewall does decent job and worth considering.
If you do this, where are dyndns (built-in and additional via contribs) facilities that you could efficiently use.
Title: How to update dynamic dns?
Post by: Kelvin on February 25, 2004, 10:21:33 PM
There is a contrib for ddclient for use with dyndns.org. I've used this for a long time for exactly this sort of setup.

You could either get ddclient to query the router (if it is a supported router) for the IP address or do a web based query for your IP address and update as required.

Kelvin
Title: How to update dynamic dns?
Post by: Boris on February 25, 2004, 10:28:54 PM
Quote from: "Kelvin"
There is a contrib for ddclient for use with dyndns.org. I've used this for a long time for exactly this sort of setup.

You could either get ddclient to query the router (if it is a supported router) for the IP address or do a web based query for your IP address and update as required.

Kelvin


The only problem with this is that querys will have to be scheduled and it will be gaps when routers IP has changed, but SME doesn't yet know about it until the next scheduled check.
Router or SME acting as a router would know immediately about IP change and update dyndns service.
Jerry mentioned that his ISP changes IP frequently and it could be the issue.
Title: How to update dynamic dns?
Post by: gzartman on February 26, 2004, 12:18:37 AM
I've had best luck with ddclient in concert with easydns.com.  The lag between an IP change and DNS update is very small.

I uploaded the ddclient rpm to my contrib area:

http://www.ibiblio.org/pub/Linux/distributions/smeserver/contribs/gzartman/Contribs/

You should see it show up in the ddclient dir when the mirros sync.

Once installed, issue the following from the shell:

/sbin/e-smith/config set ddclient service status enabled

ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S65ddclient


Then to start ddclient the first time:
/etc/rc.d/init.d/ddclient start

Greg Zartman
Title: How to update dynamic dns?
Post by: haj on February 27, 2004, 06:29:20 AM
here is a sample /etc/ddclient.conf file:

daemon=300            # check every 300 seconds
syslog=yes            # log update msgs to syslog
mail=root            # mail all msgs to root
mail-failure=root         # mail failed update msgs to root
pid=/var/run/ddclient.pid      # record PID in file.

use=if,   if=ppp0

protocol=dyndns2
server=members.dyndns.org
login=xxxxxx
password=xxxxxx

server=members.dyndns.org,   protocol=dyndns2, wildcard=yes yourdomain.dyndns.org


I found this advice somewhere on the net, is it needed:

To get the updating to work automatic when your ip changes, you need to add the following line to /etc/ppp/ip-up.local/

/usr/sbin/ddclient -daemon=0 -syslog -use=if -if=$1 >/dev/null 2>&1