From owner-freebsd-questions Tue Mar 26 06:38:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA08216 for questions-outgoing; Tue, 26 Mar 1996 06:38:20 -0800 (PST) Received: from nixpbe.pdb.sni.de (mail.sni.de [192.109.2.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id GAA08206 for ; Tue, 26 Mar 1996 06:38:11 -0800 (PST) Received: (from nerv@localhost) by nixpbe.pdb.sni.de (8.6.12/8.6.12) id PAA03281 for questions@FreeBSD.org; Tue, 26 Mar 1996 15:37:39 +0100 Message-Id: <199603261437.PAA03281@nixpbe.pdb.sni.de> Subject: Changing DNS and gateway To: siegwao6@cti.ecp.fr (BGB) Date: Tue, 26 Mar 96 15:34:51 MET From: Greg Lehey Cc: questions@FreeBSD.org In-Reply-To: <01BB1B1D.D2E8E320@olivier.via.ecp.fr>; from "BGB" at Mar 26, 96 2:09 pm X-Mailer: xmail 2.4 (based on ELM 2.2 PL16) Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Olivier Siegwart writes: > Just a stupid question : > My DNS and Gateway have changed their IP address. > How can I reconfigure my network system ? Assuming that you are relying on a name server on another system, and that you only have a single gateway, you can do this with the following two steps: 1. Changing the name server information. Look in the file /etc/resolv.conf, which will look something like: ; ; BIND data file ; search FreeBSD.org cdrom.com nameserver 204.216.27.3 nameserver 131.119.245.5 Change the address(es) of the name servers to the new values. These values will work straight away. 2. To change the default gateway, look in /etc/sysconfig, where you will find something like: # Set to the host you'd like set as your default router, or NO for none. defaultrouter="204.216.27.1" Change the address to indicate your default gateway. After changing the value, you'll have to tell the routing table about the change. You can omit this stage if you intend to reboot. Enter: # route delete default # route add default 213.143.91.33 This is a pretty superficial look at things, but it should work in most cases. Greg