View previous topic :: View next topic |
Author |
Message |
bjorntj Guru


Joined: 01 Jun 2005 Posts: 402
|
Posted: Tue Sep 04, 2007 7:56 am Post subject: vpnc and resolv.conf? |
|
|
Is there a way to make vpnc not change dns servers when connected?
I don't want vpnc to change my resolv.conf, is this possible?
Regards,
BTJ _________________ Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows" |
|
Back to top |
|
 |
zatalian Apprentice


Joined: 27 Aug 2002 Posts: 179 Location: Gent, Belgium
|
Posted: Sun Sep 16, 2007 6:34 am Post subject: |
|
|
I have the exact opposite problem.
vpnc does not want to change resolv.conf
I read the vpnc wiki that suggests installing a nameserver to solve the problem, but if it is possible to do it without it, like you describe, i would like to know how... |
|
Back to top |
|
 |
bjorntj Guru


Joined: 01 Jun 2005 Posts: 402
|
Posted: Sun Sep 16, 2007 8:44 am Post subject: |
|
|
zatalian wrote: | I have the exact opposite problem.
vpnc does not want to change resolv.conf
I read the vpnc wiki that suggests installing a nameserver to solve the problem, but if it is possible to do it without it, like you describe, i would like to know how... |
Well, I haven't done anything except for installing vpnc and using default options..
BTJ |
|
Back to top |
|
 |
zatalian Apprentice


Joined: 27 Aug 2002 Posts: 179 Location: Gent, Belgium
|
Posted: Sun Sep 16, 2007 11:07 am Post subject: |
|
|
This is what i just figured out :
if /etc/resolv.conf is linked to /etc/resolvconf/run/resolv.conf then it is automatically updated.
I still had a non linked /etc/resolv.conf so it did not update.
to bad /etc/resolvconf/run/resolv.conf does not solve my problems. It looks like i need dnsmasq... |
|
Back to top |
|
 |
bjorntj Guru


Joined: 01 Jun 2005 Posts: 402
|
Posted: Sun Sep 16, 2007 5:58 pm Post subject: |
|
|
zatalian wrote: | This is what i just figured out :
if /etc/resolv.conf is linked to /etc/resolvconf/run/resolv.conf then it is automatically updated.
I still had a non linked /etc/resolv.conf so it did not update.
to bad /etc/resolvconf/run/resolv.conf does not solve my problems. It looks like i need dnsmasq... |
Hmmm... I don't have a directory named resolvconf under etc....
BTJ |
|
Back to top |
|
 |
Princess Nell l33t


Joined: 15 Apr 2005 Posts: 930
|
Posted: Sun Sep 16, 2007 9:47 pm Post subject: |
|
|
bjorntj: I've taken the session management script from
http://www.gentoo.org/doc/en/vpnc-howto.xml
and modified it so save resolv.conf before running vpnc, then restore it. |
|
Back to top |
|
 |
bjorntj Guru


Joined: 01 Jun 2005 Posts: 402
|
Posted: Mon Sep 17, 2007 7:36 am Post subject: |
|
|
'
I have made my own script trying to copy the old resolv.conf over the new, but it doesn't work... But I finally figured why.....
I have an alias called cp, that includes the -i argument, so no wonder it didn't work.. Using the cp program instead of the alias solved it...
BTJ |
|
Back to top |
|
 |
|