Summary: | net-dns/openresolv-2.0.1: adds vpn dns entries incorrectly to resolv.conf | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Wil Reichert <wil.reichert> |
Component: | [OLD] Core system | Assignee: | Jim Ramsay (lack) (RETIRED) <lack> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | roy |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Work properly for resolv.confs without metrics |
Description
Wil Reichert
2009-02-26 22:09:53 UTC
Updated to net-dns/openresolv-3.0 today, problem still exists. You neglected to state baselayout or openrc version. Anyway, could you post the output of the following please? ls -l /var/run/resolvconf/metrics Created attachment 185393 [details, diff]
Work properly for resolv.confs without metrics
I think this is the issue you're having.
With the new metric support we added in 2.0 everything got a metric. We then fixed metric to actually work in 2.0.1. However, this also meant that the dynamic ordering based in interface name stopped working. This patch only works like so now
dynamic order
metric order
everything else
You will have to restart all your interfaces for this to work though.
(In reply to comment #2) > You neglected to state baselayout or openrc version. > Anyway, could you post the output of the following please? > > ls -l /var/run/resolvconf/metrics sys-apps/openrc-0.4.3-r1 sys-apps/baselayout-2.0.0 ls -l /var/run/resolvconf/metrics total 16 -rw-r--r-- 1 root root 2 Mar 15 11:06 0000000 bond0 -rw-r--r-- 1 root root 2 Jan 7 20:17 0000000 eth2 -rw-r--r-- 1 root root 2 Mar 15 11:06 0000000 lo -rw------- 1 root root 2 Mar 18 06:35 0000000 ppp0 I have no eth2, bond0 is eth0 & eth1 bonded, ppp0 is one of my vpn connections (pptp), the other is tun0 (vpnc) which isn't listed. (In reply to comment #4) > ls -l /var/run/resolvconf/metrics > total 16 > -rw-r--r-- 1 root root 2 Mar 15 11:06 0000000 bond0 > -rw-r--r-- 1 root root 2 Jan 7 20:17 0000000 eth2 > -rw-r--r-- 1 root root 2 Mar 15 11:06 0000000 lo > -rw------- 1 root root 2 Mar 18 06:35 0000000 ppp0 Yeah, the above patch should fix that. > I have no eth2, bond0 is eth0 & eth1 bonded, ppp0 is one of my vpn connections > (pptp), the other is tun0 (vpnc) which isn't listed. eth2 must have existed at some point though. /var/run is deleted when the system reboots, or goes from single user to multiuser. So it's been up a long time? Anyway, you can manually delete the instance resolvconf -d eth2 (In reply to comment #3) That patch fixes the problem, thanks. This is fixed in openresolv-3.1.1 which is now in portage. (In reply to comment #7) > This is fixed in openresolv-3.1.1 which is now in portage. You said it. Closing. |