Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290211 - net-misc/openvpn-2.1_rc15 does not respect PEER_DNS="no" in /etc/conf.d/openvpn
Summary: net-misc/openvpn-2.1_rc15 does not respect PEER_DNS="no" in /etc/conf.d/openvpn
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Manuel Rüger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 08:50 UTC by pille
Modified: 2017-02-21 11:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pille 2009-10-23 08:50:05 UTC
in my /etc/conf.d/openvpn PEER_DNS is set to "no", which should leave my /etc/resolv.conf alone. however, when connecting to a VPN my resolv.conf gets modified by openresolv-3.1.1.

i am sure my openvpn config does not use any up/down hooks for openresolv.
Comment 1 Marcel Pennewiß 2009-10-23 09:25:35 UTC
create a symlink in /etc/conf.d/ for your openvpn-servicename.

example:
your config-file is "vpnservice.conf" in /etc/openvpn
your init-file is a symlinke openvpn.vpnservice -> openvpn
in /etc/conf.d your config-file should have "openvpn.vpnservice" as filename. create a symlink openvpn.vpnservice -> openvpn in /etc/conf.d and PEER_DNS will be respected for this connection
Comment 2 pille 2009-10-23 09:55:13 UTC
great! this works well. i recommend to describe this in the comment above PEER_DNS in /etc/conf.d/openvpn.
Comment 3 pille 2009-10-27 08:53:02 UTC
after some days I noticed the bad effect again.
it only works when restarting the openvpn init script.
unfortunately when restarting the physical network init scripts (/etc/init.d/net.eth0) my /etc/resolv.conf gets nameserver entries from my VPN.
Comment 4 Manuel Rüger (RETIRED) gentoo-dev 2016-09-01 12:39:41 UTC
This bug has gotten really old, can you please retry with openvpn-2.3.12 and see if the issue still exists?
Comment 5 pille 2017-02-21 11:02:56 UTC
no, i can't. i'm on systemd now and the original report was filed against openrc.