Re: /etc/resolv.conf problems and fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 10 Nov 2004, Robin Rosenberg wrote:

The problem is that I need to add a DNS server from the VPN
connection to whatever my normal network gives me. This
is fine until the normal DHCP renews the subscription and
overwrites /etc/resolv.conf. removing the VPN-DNS in the
process.

In this configuration you need to tell your dhcp client to not automatically update resolv.conf.


With some clever scripting you should be able to automate the resolv.conf settings for both DHCP and VPN. The DHCP and VPN software I have looked at all had hooks allowing one to script things on actions (interface/tunnel up/down etc), and the DHCP information received by the client is usually available in decent form for use in scripting.

Regards
Henrik
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux