Re: how to stop resolv.conf from being updated
From: Lowell Gilbert (freebsd-questions-local_at_be-well.no-ip.com)
Date: 05/30/03
- Previous message: admin: "newbie: cant create stunnel.pid file"
- In reply to: T Kellers: "Re: how to stop resolv.conf from being updated"
- Next in thread: Robert Westendorp: "Re: how to stop resolv.conf from being updated"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: T Kellers <kellers@njit.edu> Date: 30 May 2003 14:46:29 -0400
T Kellers <kellers@njit.edu> writes:
> A sledgehammer approach to make it work:
>
> Comment out the following lines from /sbin/dhclient-script
>
> make_resolv_conf() {
> if [ x"$new_domain_name_servers" != x ]; then
> if [ "x$new_domain_name" != x ]; then
> echo search $new_domain_name >/etc/resolv.conf
> else
> rm /etc/resolv.conf
> fi
> for nameserver in $new_domain_name_servers; do
> echo nameserver $nameserver >>/etc/resolv.conf
> done
> fi
> }
Less of a sledgehammer for a similar effect:
prepend domain-name-servers 127.0.0.1;
[or wherever your nameserver should be]
As an option in dhclient.conf(5)
You can use supersede instead, if you *really* don't want to go to the
ISP's servers, even if yours fails.
_______________________________________________
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"
- Previous message: admin: "newbie: cant create stunnel.pid file"
- In reply to: T Kellers: "Re: how to stop resolv.conf from being updated"
- Next in thread: Robert Westendorp: "Re: how to stop resolv.conf from being updated"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]