From owner-freebsd-questions@FreeBSD.ORG Tue Aug 7 15:07:56 2012 Return-Path: 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 04F2F1065677 for ; Tue, 7 Aug 2012 15:07:56 +0000 (UTC) (envelope-from jamie@kode5.net) Received: from kontrol.kode5.net (kontrol.kode5.net [80.229.5.32]) by mx1.freebsd.org (Postfix) with ESMTP id 49F9C8FC15 for ; Tue, 7 Aug 2012 15:07:54 +0000 (UTC) Received: from localhost (kontrol [127.0.0.1]) by kontrol.kode5.net (Postfix) with ESMTP id F06A26C129F for ; Tue, 7 Aug 2012 16:09:33 +0100 (BST) X-Virus-Scanned: amavisd-new at kode5.net Received: from kontrol.kode5.net ([127.0.0.1]) by localhost (kontrol.kode5.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kWcT5w3AShFA for ; Tue, 7 Aug 2012 16:09:32 +0100 (BST) Received: by kontrol.kode5.net (Postfix, from userid 1000) id D6F066C1335; Tue, 7 Aug 2012 16:09:32 +0100 (BST) Date: Tue, 7 Aug 2012 16:09:32 +0100 From: Jamie Paul Griffin To: freebsd-questions@freebsd.org Message-ID: <20120807150932.GB25551@kontrol.kode5.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <50211B1A.3090101@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: x-operating-system: NetBSD 5.1_STABLE amd64 x-pgp-fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38 User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: Openresolv Config 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, 07 Aug 2012 15:07:56 -0000 == Iqbal Aroussi wrote on Tue 7.Aug'12 at 14:00:06 +0000 == > Hi Matthew, > > Thank you so much for your quick reply. > How Can I override using openresolv/resolvconf or configuring it for static > IP on a server ? > Currently my servers are configured with DHCP by the webhost company. > I prefer to have them configured with static IP but right now I'm stuck on > the openresolv problem. > > Do you know where can I find a openresolv howto for FreeBSD-9 please. > > Best Regards You can set up a local DNS server using named. This is what I do for my mail server. I do use NetBSD on that machine though but the set up won't much different. You would need to configure your router to always assign the same ip to your machine and configure your network interface to use that ip, possibly within /etc/rc.conf. That way the dhclient won't override the entries you put in /etc/resolv.conf and /etc/nsswitch.conf when it boots-up. That might be a solution to your problem, perhaps others could confirm that for sure. Jamie