Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vpnc and resolv.conf?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bjorntj
Guru
Guru


Joined: 01 Jun 2005
Posts: 402

PostPosted: Tue Sep 04, 2007 7:56 am    Post subject: vpnc and resolv.conf? Reply with quote

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
View user's profile Send private message
zatalian
Apprentice
Apprentice


Joined: 27 Aug 2002
Posts: 179
Location: Gent, Belgium

PostPosted: Sun Sep 16, 2007 6:34 am    Post subject: Reply with quote

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
View user's profile Send private message
bjorntj
Guru
Guru


Joined: 01 Jun 2005
Posts: 402

PostPosted: Sun Sep 16, 2007 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
zatalian
Apprentice
Apprentice


Joined: 27 Aug 2002
Posts: 179
Location: Gent, Belgium

PostPosted: Sun Sep 16, 2007 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
bjorntj
Guru
Guru


Joined: 01 Jun 2005
Posts: 402

PostPosted: Sun Sep 16, 2007 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 927

PostPosted: Sun Sep 16, 2007 9:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
bjorntj
Guru
Guru


Joined: 01 Jun 2005
Posts: 402

PostPosted: Mon Sep 17, 2007 7:36 am    Post subject: Reply with quote

Princess Nell wrote:
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.
'

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum