Gentoo Archives: gentoo-user

From: Emanuele Rusconi <emarsk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Wireless DHCP takes over resolv.conf
Date: Mon, 11 Jul 2016 08:33:14
Message-Id: CAPife4=Ub3=6c0iTEqm2S9QKrO06cNa33RUxOrW0w-dTZFqSGw@mail.gmail.com
In Reply to: Re: [gentoo-user] Wireless DHCP takes over resolv.conf by Fernando Rodriguez
1 Wouldn't it be better to just use the same servers for both wired and
2 wireless? It's what I use and it works flawlessly.
3 In that case you have at least a couple of options:
4
5 The second line says:
6
7 # /etc/resolv.conf.head can replace this line
8
9 So, you can just put your preferred servers in the /etc/resolv.conf.head
10 file and they will be written at the top of /etc/resolv.conf .
11
12
13 Or, you can write your own /etc/resolv.conf and add this line to your
14 /etc/dhcpcd.conf :
15
16 nohook resolv.conf
17
18 This is the same as the -C option, and tells dhcpcd to not overwrite
19 /etc/resolv.conf .
20
21
22
23 -- Emanuele Rusconi

Replies

Subject Author
Re: [gentoo-user] Wireless DHCP takes over resolv.conf Alan McKinnon <alan.mckinnon@×××××.com>