From owner-freebsd-questions@FreeBSD.ORG Tue Apr 17 16:55:28 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4CB6216A403 for ; Tue, 17 Apr 2007 16:55:28 +0000 (UTC) (envelope-from peter@pean.org) Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by mx1.freebsd.org (Postfix) with ESMTP id 92E7513C45E for ; Tue, 17 Apr 2007 16:55:27 +0000 (UTC) (envelope-from peter@pean.org) Received: from ironport2.bredband.com ([195.54.107.84] [195.54.107.84]) by mxfep03.bredband.com with ESMTP id <20070417161907.LUHR2708.mxfep03.bredband.com@ironport2.bredband.com> for ; Tue, 17 Apr 2007 18:19:07 +0200 Received: from c-1fda72d5.07-172-73746f44.cust.bredbandsbolaget.se (HELO [172.25.1.24]) ([213.114.218.31]) by ironport2.bredband.com with ESMTP; 17 Apr 2007 18:19:06 +0200 Message-ID: <4624F378.3050505@pean.org> Date: Tue, 17 Apr 2007 18:19:04 +0200 From: =?ISO-8859-1?Q?Peter_Ankerst=E5l?= User-Agent: Thunderbird 1.5.0.10 (X11/20070412) MIME-Version: 1.0 To: Ido Admon References: <20070417145352.M39800@mscc.huji.ac.il> In-Reply-To: <20070417145352.M39800@mscc.huji.ac.il> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Execute command upon interface initialization? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2007 16:55:28 -0000 Ido Admon wrote: > Hello list, > I couldn't find any way to execute an arbitrary command upon network > interface initialization. My situations is that I have and ethernet card > that takes DHCP from a cables provider (not a fixed IP address) and I > need to update a DynDNS hostname everytime it does (everytime the IP > changes). > I couldn't find a way to execute shell commands using the rc system or > dhclient, what did I miss? > Sure I could just use cron but that's not very elegant. You could use dns/ez-ipupdate. It is a daemon who updates your dyndns whenever your ip is changed.