public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started
@ 2007-05-17 14:08 Dan Johansson
  2007-05-17 14:37 ` Dan Farrell
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Johansson @ 2007-05-17 14:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

I'm having some trouble with dhcpcd and CiscoVPN. This is what I do and what's 
happening.

Computer starts and brings up eth1 (Wireless interface)
dhcpcd starts and gets IP, GW, resolv.conf information (wich is correct at 
this time)
cisco-vpnclient-starts and I get a new interface cipsec0 with "VPN"-IP
the vpn-client also changes the default-gw and resolv.conf
I can now do dnslookups for the hosts in the company network (resolv.conf is 
the on from the company).
After a few minutes resolv.conf gets overwritten with the dhcpcd version, and 
I can no longer do any lookups for hosts in the company network, I can still 
connect to the hosts using IP.
Any suggestions on how to make dhcpcd not to override the resolv.conf from the 
cisco-vpn-client?

Regards,
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started
  2007-05-17 14:08 [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started Dan Johansson
@ 2007-05-17 14:37 ` Dan Farrell
  2007-05-17 15:04   ` Dan Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Farrell @ 2007-05-17 14:37 UTC (permalink / raw
  To: gentoo-user

On Thu, 17 May 2007 16:08:00 +0200
Dan Johansson <Dan.Johansson@dmj.nu> wrote:

> I'm having some trouble with dhcpcd and CiscoVPN. This is what I do
> and what's happening.
> 
> Computer starts and brings up eth1 (Wireless interface)
> dhcpcd starts and gets IP, GW, resolv.conf information (wich is
> correct at this time)
> cisco-vpnclient-starts and I get a new interface cipsec0 with "VPN"-IP
> the vpn-client also changes the default-gw and resolv.conf
> I can now do dnslookups for the hosts in the company network
> (resolv.conf is the on from the company).
> After a few minutes resolv.conf gets overwritten with the dhcpcd
> version, and I can no longer do any lookups for hosts in the company
> network, I can still connect to the hosts using IP.
> Any suggestions on how to make dhcpcd not to override the resolv.conf
> from the cisco-vpn-client?
> 
> Regards,

Dhcpcd has an option for that, i believe it's -R.  for example, on this
diskless router the dhcpcd on eth1 can't rewrite resolv.conf or the
netboot will fail: 
>>>FROM conf.d/net:
|  config_eth1=("dhcp")
|  dhcpcd_eth1=("-R")


However, you may need to find some way to get that information filled
out with your corporate intranet info before you use the vpn.  
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started
  2007-05-17 14:37 ` Dan Farrell
@ 2007-05-17 15:04   ` Dan Johansson
  2007-05-17 22:12     ` Sascha Hlusiak
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Johansson @ 2007-05-17 15:04 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1759 bytes --]

On Thursday 17 May 2007 16:37, Dan Farrell wrote:
> On Thu, 17 May 2007 16:08:00 +0200
>
> Dan Johansson <Dan.Johansson@dmj.nu> wrote:
> > I'm having some trouble with dhcpcd and CiscoVPN. This is what I do
> > and what's happening.
> >
> > Computer starts and brings up eth1 (Wireless interface)
> > dhcpcd starts and gets IP, GW, resolv.conf information (wich is
> > correct at this time)
> > cisco-vpnclient-starts and I get a new interface cipsec0 with "VPN"-IP
> > the vpn-client also changes the default-gw and resolv.conf
> > I can now do dnslookups for the hosts in the company network
> > (resolv.conf is the on from the company).
> > After a few minutes resolv.conf gets overwritten with the dhcpcd
> > version, and I can no longer do any lookups for hosts in the company
> > network, I can still connect to the hosts using IP.
> > Any suggestions on how to make dhcpcd not to override the resolv.conf
> > from the cisco-vpn-client?
>
> Dhcpcd has an option for that, i believe it's -R.  for example, on this
> diskless router the dhcpcd on eth1 can't rewrite resolv.conf or the
>
> netboot will fail:
> >>>FROM conf.d/net:
> |
> |  config_eth1=("dhcp")
> |  dhcpcd_eth1=("-R")
>
> However, you may need to find some way to get that information filled
> out with your corporate intranet info before you use the vpn.
Thanks for the suggestion, I allready know about -R but I need dhcpcd to set 
resolv.conf before the vpnclient starts to get the correct information for 
the network I'm on (not always using VPN).

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started
  2007-05-17 15:04   ` Dan Johansson
@ 2007-05-17 22:12     ` Sascha Hlusiak
  2007-05-28 18:06       ` SOLVED - " Dan Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: Sascha Hlusiak @ 2007-05-17 22:12 UTC (permalink / raw
  To: gentoo-user; +Cc: Dan Johansson

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

> > Dhcpcd has an option for that, i believe it's -R.  for example, on this
> > diskless router the dhcpcd on eth1 can't rewrite resolv.conf or the
> >
> > netboot will fail:
> > >>>FROM conf.d/net:
> > |
> > |  config_eth1=("dhcp")
> > |  dhcpcd_eth1=("-R")
> >
> > However, you may need to find some way to get that information filled
> > out with your corporate intranet info before you use the vpn.
>
> Thanks for the suggestion, I allready know about -R but I need dhcpcd to
> set resolv.conf before the vpnclient starts to get the correct information
> for the network I'm on (not always using VPN).
emerge resolvconf-gentoo

This should manage the resolv.conf dynamically and merge information about 
different nameservers for different networks. Works fine for me with the very 
same situation.

- Sascha


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SOLVED - [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started
  2007-05-17 22:12     ` Sascha Hlusiak
@ 2007-05-28 18:06       ` Dan Johansson
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Johansson @ 2007-05-28 18:06 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

On Friday 18 May 2007 00:12, Sascha Hlusiak wrote:
> > > Dhcpcd has an option for that, i believe it's -R.  for example, on this
> > > diskless router the dhcpcd on eth1 can't rewrite resolv.conf or the
> > >
> > > netboot will fail:
> > > >>>FROM conf.d/net:
> > > |
> > > |  config_eth1=("dhcp")
> > > |  dhcpcd_eth1=("-R")
> > >
> > > However, you may need to find some way to get that information filled
> > > out with your corporate intranet info before you use the vpn.
> >
> > Thanks for the suggestion, I allready know about -R but I need dhcpcd to
> > set resolv.conf before the vpnclient starts to get the correct
> > information for the network I'm on (not always using VPN).
>
> emerge resolvconf-gentoo
>
> This should manage the resolv.conf dynamically and merge information about
> different nameservers for different networks. Works fine for me with the
> very same situation.
Sorry for the late Answer - I was over in the States last week.

Thanks for the tipp, It's working now.

Greatings,
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-28 18:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-17 14:08 [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started Dan Johansson
2007-05-17 14:37 ` Dan Farrell
2007-05-17 15:04   ` Dan Johansson
2007-05-17 22:12     ` Sascha Hlusiak
2007-05-28 18:06       ` SOLVED - " Dan Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox