From owner-freebsd-ports@FreeBSD.ORG Sat Feb 21 17:42:31 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2CAA106566C for ; Sat, 21 Feb 2009 17:42:31 +0000 (UTC) (envelope-from outi@bytephobia.de) Received: from dd18312.kasserver.com (dd18312.kasserver.com [85.13.138.194]) by mx1.freebsd.org (Postfix) with ESMTP id 65D248FC19 for ; Sat, 21 Feb 2009 17:42:31 +0000 (UTC) (envelope-from outi@bytephobia.de) Received: from duality (pD9E35BA4.dip.t-dialin.net [217.227.91.164]) by dd18312.kasserver.com (Postfix) with ESMTP id 5C645182ED577; Sat, 21 Feb 2009 18:20:14 +0100 (CET) Date: Sat, 21 Feb 2009 18:20:02 +0100 From: Patrick Hurrelmann To: Oliver Lehmann Message-ID: <20090221182002.18e4f6bf@duality> In-Reply-To: <20090221094713.c95774f2.lehmann@ans-netz.de> References: <20090221094713.c95774f2.lehmann@ans-netz.de> Organization: private X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: dyndns.org clients X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2009 17:42:31 -0000 On Sat, 21 Feb 2009 09:47:13 +0100 Oliver Lehmann wrote: > Hi, > > I'm looking for a dyndns.org client. I've used ddup for years but it > is deleted for quite some time now. ipcheck is not a solution because > it requires python. I don't want to install a whole scripting > language for just keeping my IP at dyndns.org up to date on my router. > > So I'm looking for a dyndns.org client which is written in C (perl is > also not an option). Does someone know a port? > > Otherwise I propably have to resurrect ddup... > Hi Oliver, on my OpenBSD Firewall I have simple shell script running, that takes care of the ip-address update for dyndns.org. This works as dyndns.org aloows updates via http. I fetched the script below from some howto or mailinglists, but I can't remember where :/ #!/bin/sh LOG=/var/log/update_dyndns.log DYNIP=`ifconfig pppoe0 | grep 'inet ' | awk '{print $2}'` echo "`date` : Update dyndns.org: ${DYNIP}" >> ${LOG} /usr/bin/lynx -dump -auth=${1}:${2} "http://members.dyndns.org/nic/update?system =dyndns&hostname=${3}&myip=${DYNIP}" >> ${LOG} #EOF All you need is to run the script and pass username, password and domain as parameters. This runs beautiful! I was in the very same situation as you. The perl solution wasn't what I was searching for and some Python scripts seemed to be overkill for a small embedded firewall like mine. So I went using this approach. Lynx also is available in base on OpenBSD. Hope this may help you :) Reagards Patrick -- ==================================================================== Patrick Hurrelmann | "Programming today is a race between software Mannheim, Germany | engineers striving to build bigger and better | idiot-proof programs, and the Universe trying outi@bytephobia.de | to produce bigger and better idiots. So far, www.bytephobia.de | the Universe is winning." - Rich Cook /"\ \ / ASCII Ribbon Campaign X against HTML email & vCards / \