From owner-freebsd-questions@FreeBSD.ORG Tue Aug 7 14:00:27 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 975CF1065670 for ; Tue, 7 Aug 2012 14:00:27 +0000 (UTC) (envelope-from iqbal@aroussi.name) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3C69A8FC15 for ; Tue, 7 Aug 2012 14:00:26 +0000 (UTC) Received: by vcbgb22 with SMTP id gb22so5078851vcb.13 for ; Tue, 07 Aug 2012 07:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aroussi.name; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2fF++WzWbw1FKSnrajkdaMXxj9rK291pwXZ9BUEC0Zw=; b=h9R7hPtV+kyeuBGcfh/4mSGlaNndHpz3vS/Md5kQh4iXwiSwsm8QSY0xOufYVcldXl aVs3zJB1osyn7oNwkdIUQcHPVDUgjHSC00b/5UJkSi9H1jAlEXdLg4+8F4O4ql38455e 7OXGm3sd4Na1BDx1lVbnlqwAmd0EN4Wp1PbJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=2fF++WzWbw1FKSnrajkdaMXxj9rK291pwXZ9BUEC0Zw=; b=HTppSYplYolcfjYPiKTIflcQ9I4yhrjF6N5JjUS5mgRJqA4sQKzz5gyUleOk7ZpG9b pgzIFwm0U4F70TH5cABbin7UUw9eJ+0fFplj5Phw2LYySfeignqDl2pfYYtc2nYo54Lv ArxDnmJ35/T3KEsrvFGHEUY/P8GnkujSLdwZsbRAWg36+6DV2yAVIsY1OzmabKZvVoEZ kppoipDRvaWELrHV8MPGMucvmT6o8R4izHi3lXYnnPnHLumIGGJGbJpnonlH8Ip7D34G P2rZT7zaHaGmAE16gltmEd68RiwEwqPQkOMl09lPqzQVdVuDr2GAivsa7cm+bAq1v71X pmVg== Received: by 10.59.1.193 with SMTP id bi1mr3986150ved.57.1344348026493; Tue, 07 Aug 2012 07:00:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.230.66 with HTTP; Tue, 7 Aug 2012 07:00:06 -0700 (PDT) In-Reply-To: <50211B1A.3090101@infracaninophile.co.uk> References: <50211B1A.3090101@infracaninophile.co.uk> From: Iqbal Aroussi Date: Tue, 7 Aug 2012 14:00:06 +0000 Message-ID: To: Matthew Seaman X-Gm-Message-State: ALoCoQnGcJikcWm92O8jaNxK8HSNA6wBZ03+M7RBIYv6RHvsWz6pernCCgb08i1KQKXYcimabQze Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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 14:00:27 -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 On Tue, Aug 7, 2012 at 1:41 PM, Matthew Seaman < m.seaman@infracaninophile.co.uk> wrote: > On 07/08/2012 14:05, Iqbal Aroussi wrote: > > Can you please give some hints on configuring Openresolv on FreeBSD-9 > > My server is configured with DHCP, but I want to change the nameservers > in > > /etc/resolv.conf to use mein. > > I'm not sure that Openresolv is necessarily the right thing to use. > > This is how you would override the resolvers handed out to you by a DHCP > server using dhclient. Edit the file /etc/dhclient.conf and add lines > like so: > > interface "em0" { > supersede domain-name-serves 192.0.2.1, 192.0.2.2; > } > > Obviously, substitute the correct interface name and the IP numbers of > your own DNS servers. There's also 'prepend' instead of 'supersede,' > which allows you to stick your nameservers in as the preferred choice, > but still keep the original ones as a fallback. See dhclient.conf(5). > > This assumes you've only got the one ethernet interface being configured > by DHCP, and that you always want to use your own nameservers > irrespective of what network you're connecting to. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > JID: matthew@infracaninophile.co.uk Kent, CT11 9PW > > -- * Iqbal Aroussi * *+212 699 206 390* *iqbal@aroussi.name*