From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 08:49:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 615F116A4CE for ; Mon, 17 Nov 2003 08:49:31 -0800 (PST) Received: from mail2.northnetworks.ca (dev.eagle.ca [209.167.58.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7412443F75 for ; Mon, 17 Nov 2003 08:49:29 -0800 (PST) (envelope-from iaccounts@northnetworks.ca) Received: from svr3.northnetworks.ca (localhost.northnetworks.ca [127.0.0.1]) hAHGgLXK040554; Mon, 17 Nov 2003 11:42:21 -0500 (EST) (envelope-from iaccounts@northnetworks.ca) Received: from localhost (iaccounts@localhost)hAHGgK0T040551; Mon, 17 Nov 2003 11:42:20 -0500 (EST) X-Authentication-Warning: svr3.northnetworks.ca: iaccounts owned process doing -bs Date: Mon, 17 Nov 2003 11:42:20 -0500 (EST) From: Steve Bertrand To: Marty Landman In-Reply-To: <6.0.0.22.0.20031113105553.01b754b8@pop.face2interface.com> Message-ID: <20031117113228.B40496@svr3.northnetworks.ca> References: <6.0.0.22.0.20031112151158.0202d218@pop.face2interface.com> <20031112153139.A11115@svr3.northnetworks.ca> <6.0.0.22.0.20031112161045.05e466b0@pop.face2interface.com> <6.0.0.22.0.20031113105553.01b754b8@pop.face2interface.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re[2]: newbie dns mess w/ nic X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2003 16:49:31 -0000 > >Ahh, but the line in rc.conf should be like that: > > > >defaultrouter="192.158.0.1" > > Thanks for the follow up Dmitry. Right now I've got the typo'd line > commented out on /etc/rc.conf and am accomplishing this with the line I apologize for this corrupted info that I sent. > 1. what's the difference between these two commands, e.g. are they > interchangable in this case? The difference is the syntax. In rc.conf, the entry is pulled into an external program and executed as a name/value pair. When run at the command line (or within a script), you are actually running the route program directly, and passing it the parameters 'add', 'default' and 'IP'. They can not be interchanged. > 2. other than the potential for a race condition (if that's even the right > way to put it) is there anything better about establishing dns routing in > rc.conf than in the rc.d exec on restart? I don't know for sure. I have with some of our client FBSD routers, added routes from within the rc.d directory after initializing VPN tunnels, which worked fine. I've never tested the default route from there though. > **3. how the heck do I give my fbsd box a name on my lan? this has been > bugging me for a few days now What type of name? DNS? If so, add the following to your rc.conf file, before the IP address gets assigned: hostname="mybox.mydomain.com" Make an entry in DNS for this name, with it's ip, or add the IP/name pair in the 'hosts' file on each box that needs to see it. If you are referring to a Windows NetBIOS name, you will need to review the following site and install the software: http://www.samba.org Cheers, Steve > > > Marty Landman Face 2 Interface Inc 845-679-9387 > Sign On Required: Web membership software for your site > Make a Website: http://face2interface.com/Home/Demo.shtml > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >