Gentoo Archives: gentoo-user

From: Kenneth Prugh <ken69267@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] prevent resolv.conf generation by dhcp
Date: Mon, 28 Jul 2008 01:58:17
Message-Id: 20080727215810.74ef2b71@Midori.localhost
In Reply to: [gentoo-user] prevent resolv.conf generation by dhcp by "»Q«"
1 On Sun, 27 Jul 2008 20:34:23 -0500
2 »Q« <boxcars@×××.net> wrote:
3
4 > Since I connect to wireless APs with nameservers not patched against
5 > the cache poisoning vulnerability, I'd like to stick with using the
6 > opendns.com servers for a while. I'm using wpa_supplicant and
7 > openresolv. What's the best way for me to keep my resolv.conf from
8 > being overwritten when I connect?
9 >
10 > So far, I've just put the opendns servers
11 > in /etc/resolvconf/resolv.conf.d/head so that they are always on top,
12 > which is probably good enough.
13 >
14
15 In /etc/conf.d/net add:
16
17 dhcp_wlan0="nodns"
18
19 (or whatever your interface is)
20
21 Hope that helps.
22
23 --
24 Ken69267 | AMD64 Gentoo Linux Developer

Replies

Subject Author
[gentoo-user] Re: prevent resolv.conf generation by dhcp [solved] "»Q«" <boxcars@×××.net>