Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

dhclient and /etc/resolv.conf

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  NTP  
Author Message
alex r

External


Since: Jul 05, 2007
Posts: 1



(Msg. 1) Posted: Thu Jul 05, 2007 8:28 am
Post subject: dhclient and /etc/resolv.conf
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

Hi All,

This is probably something thats been asked a million times, but I need to
ask anyway because googling for the answer, just points me to solutions
for netbsd/openbsd, and the freebsd handbook hasnt really helped either.

Short question, how do i stop dhclient from overwriting /etc/resolv.conf,
reason being is I have Bind running on the same box, and i have my
nameserver set tp 127.0.0.1 -its annoying to have to keep changing this.
is there any mechanism from rc.conf that I can set to change the
behaviour?

Thanks!
Alex

 >> Stay informed about: dhclient and /etc/resolv.conf 
Back to top
Login to vote
Henri Hennebert

External


Since: Nov 15, 2007
Posts: 4



(Msg. 2) Posted: Thu Jul 05, 2007 10:53 am
Post subject: Re: dhclient and /etc/resolv.conf [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

alex r wrote:
> Hi All,
>
> This is probably something thats been asked a million times, but I need
> to ask anyway because googling for the answer, just points me to
> solutions for netbsd/openbsd, and the freebsd handbook hasnt really
> helped either.
>
> Short question, how do i stop dhclient from overwriting
> /etc/resolv.conf, reason being is I have Bind running on the same box,
> and i have my nameserver set tp 127.0.0.1 -its annoying to have to keep
> changing this.

How about

supersede domain-name-servers;

in dhclient.conf ?

Henri

> is there any mechanism from rc.conf that I can set to change the behaviour?
>
> Thanks!
> Alex
>

 >> Stay informed about: dhclient and /etc/resolv.conf 
Back to top
Login to vote
patpro ~ Patrick Proniews

External


Since: Jun 01, 2007
Posts: 2



(Msg. 3) Posted: Thu Jul 05, 2007 10:56 am
Post subject: Re: dhclient and /etc/resolv.conf [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
alex r wrote:

> Hi All,
>
> This is probably something thats been asked a million times, but I need to
> ask anyway because googling for the answer, just points me to solutions
> for netbsd/openbsd, and the freebsd handbook hasnt really helped either.
>
> Short question, how do i stop dhclient from overwriting /etc/resolv.conf,

man dhclient.conf , and see EXAMPLES

patpro

--
http://www.patpro.net/
 >> Stay informed about: dhclient and /etc/resolv.conf 
Back to top
Login to vote
Conrad J. Sabatier

External


Since: Jan 22, 2007
Posts: 5



(Msg. 4) Posted: Fri Jul 06, 2007 11:54 pm
Post subject: Re: dhclient and /etc/resolv.conf [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 05 Jul 2007 08:28:25 +1000, alex r wrote:
>
> Short question, how do i stop dhclient from overwriting
> /etc/resolv.conf, reason being is I have Bind running on the same box,
> and i have my nameserver set to 127.0.0.1 -its annoying to have to keep
> changing this. is there any mechanism from rc.conf that I can set to
> change the behaviour?

I use the following in /etc/dhclient.conf:

prepend domain-name-servers 127.0.0.1;

This ensures that the local nameserver is listed in /etc/resolv.conf
before any of those obtained via DHCP.

HTH

--
Conrad J. Sabatier
 >> Stay informed about: dhclient and /etc/resolv.conf 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
make.conf file - HELP PLEASE - I have followed the instructions as per the following url in order to update my FreeBSD fileserver. The server is currently running FreeBSD 4.9 and I would like to update it to the latest RELEASE version. The instructions on the following url have bee...

make.conf file - PLEASE HELP - I have followed the instructions as per the following url in order to update my FreeBSD fileserver. The server is currently running FreeBSD 4.9 and I would like to update it to the latest RELEASE version. The instructions on the following url have bee...

sound works with kldload, but not /boot/loader.conf? - Hi, I just tried playing a WAV file using xmms (this is the first time I've tried anything with sound on my installation). It issued a very generic error message, telling me things like "make sure your device is installed". I did some res...

Installation & fdisk partitioning (slices) - I picked up a copy of the "FreeBSD Handbook 2nd Ed" the other day, it came with a installation disk for version 5.1 Current and that is what I am trying to install. This is my first attempt to do anything with FreeBSD. First let me describe my...

CVSup vs. portupgrade - Reading from the FreeBSD handbook on "Using the Ports Collection" leaves me a bit confused wrt CVSup and portupgrade... do these utilities accomplish the same thing? Thanks, Jay _______________________________________________..
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]