From owner-freebsd-questions@FreeBSD.ORG Tue May 8 21:11:23 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 2971B16A406 for ; Tue, 8 May 2007 21:11:23 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id E0A2C13C447 for ; Tue, 8 May 2007 21:11:22 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1535779pyh for ; Tue, 08 May 2007 14:11:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=UwtfoCznLlukcpDBmS6XKYRXXfpM4xrk94eYK3YdP7Vqmhllgfim2d2ECMLZt9qN9Fu/Y0MAkalMV3eUgIumH4RTBFGubqWE+G/F8PdKCg08tPjHfwn3FnxfbpMzNg35XpYjGSm/MlCsdaGM/BE2vgOCIRub9Iv4EKbSYHQ4zbA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=naN6+7bEjTSHT0+LLZIKfCZWcXcfqQi5n39H7m6MU/mZCJsFXx2XMZUV2VWMx0rl/aGx+THYezf7nkyOg0TDF7c2fIh/NsyisedKc5vJ5MIHlu4A7VTYTl2J/ZP5Ye9HS0oNTIjgbtTRKVJF2yL1LYz4qh8tm1bu6SPLB3yNwiE= Received: by 10.35.110.13 with SMTP id n13mr3511229pym.1178658681727; Tue, 08 May 2007 14:11:21 -0700 (PDT) Received: by 10.35.13.12 with HTTP; Tue, 8 May 2007 14:11:21 -0700 (PDT) Message-ID: Date: Tue, 8 May 2007 16:11:21 -0500 From: "Jack Barnett" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ip refresh, resolv.conf and local scripts on startup? 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, 08 May 2007 21:11:23 -0000 I have a script that updates some dynamic DNS records (can be run as non-root if needed). It needs to be run on startup - after network is configured and after rc.firewall (it'll get blocked if it's run before the firewall is setup). What is a good place to put this? I could put it at the end of rc.firewall, but is there a better place to put it? Also how do I refresh a dynamic IP without rebooting? Sometimes my cable modem gets messed up and under windows I just do: ipconfig /release ipconfig /renew and it gets new IP and sets everything up. In FreeBSD is there a way to reconfigure everything without rebooting? (rc.firewall uses this to get network info: onet=`ifconfig xl0 | grep "inet " | awk '{print $6}'` oip=`ifconfig xl0 | grep "inet " | awk '{print $2}'` Meaning, rc.firewall would also have to be re-ran if the IP is new). [also to make things more complicated, I think I need a rule in rc.firewallto allow for DHCP clients to go out? It gets blocked on external interface when firewall comes up??] Also how do I override /etc/resolv.conf? DHCP client configures it I think and sets it up to point to my ISP DNS servers (which suck) and would like to give it mine instead of there, but it keeps getting over written on startup when it gets a DHCP lease? thanks.