Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2012 16:09:32 +0100
From:      Jamie Paul Griffin <jamie@kode5.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Openresolv Config
Message-ID:  <20120807150932.GB25551@kontrol.kode5.net>
In-Reply-To: <CALQWEO_4H84=ipBPaZ7v%2B_thJH2-65Qwr4P_SGQufkKpFMr_8g@mail.gmail.com>
References:  <CALQWEO_=jvuNdLyONAcxfObgeNd0cfK9gcotiZY%2BNhxKMD4q5w@mail.gmail.com> <50211B1A.3090101@infracaninophile.co.uk> <CALQWEO_4H84=ipBPaZ7v%2B_thJH2-65Qwr4P_SGQufkKpFMr_8g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
== 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120807150932.GB25551>