public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Wireless DHCP takes over resolv.conf
@ 2016-07-09 14:53 Mick
  2016-07-09 15:34 ` Fernando Rodriguez
  2016-07-12 22:58 ` [gentoo-user] " Marat BN
  0 siblings, 2 replies; 16+ messages in thread
From: Mick @ 2016-07-09 14:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]

Hi All,

I just noticed my resolv.conf is topped up with the nameservers of the 
wireless LAN I happen to be associated at the time and my wired ethernet 
nameserver(s) are pushed further down.  This happens despite the fact that I 
have configured my wired ethernet to have a lesser priority than the wired NIC.

For example:

less /etc/resolv.conf 
# Generated by dhcpcd from wlan0.dhcp, enp11s0.dhcp
# /etc/resolv.conf.head can replace this line
domain openwifi
nameserver 192.168.22.22
nameserver 192.168.22.23
nameserver 10.10.10.254
# /etc/resolv.conf.tail can replace this line

The first 3 non-commented entries were produced by wlan0, demoting my wired 
ethernet nameserver.

ip route show
default via 10.10.10.254 dev enp11s0  metric 10 
default via 10.160.95.1 dev wlan0  metric 20 
10.10.10.0/24 dev enp11s0  proto kernel  scope link  src 10.10.10.7  metric 10 
10.160.95.0/29 dev wlan0  proto kernel  scope link  src 10.160.95.2  metric 20 
127.0.0.0/8 dev lo  scope host 

If I am associated, but not authenticated with the wireless LAN, any URLs I 
try to visit will be queried with the 192.168.22.2* nameserver, before it 
times out and 10.10.10.254 takes over.

Waiting for URLs to resolve becomes tedious after a while.  Is there a way to 
prioritise nameservers so that the NIC metric is respected, whenever the 
resolv.conf content is updated?

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-07-12 22:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-09 14:53 [gentoo-user] Wireless DHCP takes over resolv.conf Mick
2016-07-09 15:34 ` Fernando Rodriguez
2016-07-09 19:25   ` Mick
2016-07-09 19:53     ` Fernando Rodriguez
2016-07-11  8:32       ` Emanuele Rusconi
2016-07-11 15:31         ` Alan McKinnon
2016-07-11 18:13           ` Mick
2016-07-11 20:07             ` Alan McKinnon
2016-07-11 20:29               ` [gentoo-user] " Grant Edwards
2016-07-11 20:34                 ` Alan McKinnon
2016-07-11 21:03                   ` Grant Edwards
2016-07-11 21:50                     ` Alan McKinnon
2016-07-11 22:32                       ` Mick
2016-07-12 21:18           ` [gentoo-user] " Emanuele Rusconi
2016-07-12 22:36             ` [gentoo-user] " Grant Edwards
2016-07-12 22:58 ` [gentoo-user] " Marat BN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox