Re: how to stop resolv.conf from being updated
From: Mark (admin_at_asarian-host.net)
Date: 05/31/03
- Previous message: dave: "Re: XFree config"
- In reply to: Laszlo Vagner: "how to stop resolv.conf from being updated"
- Next in thread: Fuzzy: "Re: how to stop resolv.conf from being updated"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 30 May 2003 22:13:35 GMT To: "Laszlo Vagner" <george@vagner.com>, <questions@freebsd.org>
----- Original Message -----
From: "Laszlo Vagner" <george@vagner.com>
To: <questions@freebsd.org>
Sent: Friday, May 30, 2003 8:09 PM
Subject: how to stop resolv.conf from being updated
> I am using DHCP on a cable modem and my
> providers nameserver really sucks
> but changing my resolv.conf repairs
> the lookups for a little while then it gets
> set back to them upon bootup.
>
> how do i make it stay the way i set it.
Using brute force to prevent /etc/resolv.conf from being changed (with a
suggested chmod or chflags) is, imho, not the way. Play by the book, and put
something like this in /etc/resolv.conf:
prepend domain-name "my.nameserver.net ";
prepend domain-name-servers 194.0.0.1;
supersede domain-name "my.nameserver.net "
The trailing spaces ARE intentional. That worked like a charm for me, and
will "survive" a reboot. Substitute your own ISP, of course.
- Mark
_______________________________________________
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: dave: "Re: XFree config"
- In reply to: Laszlo Vagner: "how to stop resolv.conf from being updated"
- Next in thread: Fuzzy: "Re: how to stop resolv.conf from being updated"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]