Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406141 - net-misc/vpnc-0.5.3_p514: vpnc-script does not backup /etc/resolv.conf nor anticipate /etc/ppp/resolv.conf
Summary: net-misc/vpnc-0.5.3_p514: vpnc-script does not backup /etc/resolv.conf nor an...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lori
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-28 13:09 UTC by Martin Mokrejš
Modified: 2013-03-14 20:10 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 Martin Mokrejš 2012-02-28 13:09:32 UTC
Hi,
  I am using vpnc and have problems with my /etc/resolv.conf being functionally empty after closing vpnc (also when it dies):

$ cat /etc/resolv.conf
# Generated by resolvconf
$

vpnc-script parses DNS info from a remote server and overwrites the /etc/resolv.conf file. This works fine but when vpnc dies/exits it does not restore the /etc/resolv.conf file to the previous state because there is no /etc/resolv.conf-backup file existing.

Don't get me wrong. the etc/resolv.conf is filled with coorect values when the vpnc connection is made, it just does not restore to previous state during exit.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-02-06 15:31:36 UTC
Could you please report this suggestion to dwmw2@infradead.org ? We are taking the script from him.
Comment 2 Martin Mokrejš 2013-03-10 21:48:58 UTC
An upstream commit r519 adds support for resolv.conf. We should probably provide an updated ebuild for up to r527:

http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2013-March/thread.html

Unfortunately I have no Cisco access anymore. Those having time to test one could play with a Cisco emulator: http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2013-March/003899.html .
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-03-10 22:01:21 UTC
thanks for tracking upstream. I will look into that soonish.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2013-03-14 20:10:51 UTC
vpnc-0.5.3_p527 (14 Mar 2013)

  14 Mar 2013; Justin Lecher <jlec@gentoo.org> +vpnc-0.5.3_p527.ebuild,
  metadata.xml:
  Bump to latest upstream rev, fix resolv.conf handling, #406141; fix test,
  #442174; add myself as maintainer