Results 1 to 2 of 2

Thread: Single DNS config for tun0/eth0 while using vpnc

Hybrid View

  1. #1

    Single DNS config for tun0/eth0 while using vpnc

    Hi, I'm using vpnc which it is working just fine. However every time I connect to the vpn server resolv.conf is "overridden" with new information returned by the current DHCP server. I'd need to keep the DNS configuration I had for eth0 while still accepting the new DNS config for the tun0 interface. This way I'll be able to access resources from both ends by their names because even I can access them by IP I'd need to keep using their names. Does anyone knows how can this be achieved?

    I'd say that every interface should keep the configuration.

    Thanks for your help!

  2. #2
    As per what I've investigated, within Unix/linux systems we just have one DNS configuration (resolv.conf) at a time and this is the way it works. As a workaround we may have two options:

    1 - use hosts file to statically map the names we need and cannot be resolved by the current DNS server. This is a well known, quick and simple solution if we just have few resources to map.

    2 - the second solution would be to install and configure a local name server to forward request to the desired name servers based on customized rules. After that, avoid the resolv.conf file to be overridden and setup the local name server as the name resolver.

    If anyone else is aware of any other way to do it please let me know.

Similar Threads

  1. static Ip config eth0
    By svar in forum Linux - General Topics
    Replies: 1
    Last Post: 12-10-2010, 11:31 AM
  2. Single No More
    By trickster in forum General Chat
    Replies: 21
    Last Post: 01-18-2006, 12:28 PM
  3. NAT, eth1 and eth0
    By crazy ivan in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 10-18-2003, 11:35 PM
  4. Setting up eth0 from CLI
    By mcdougrs in forum Linux - General Topics
    Replies: 13
    Last Post: 12-16-2002, 05:38 PM
  5. eth0 and Debian
    By Kernel_Killer in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 05-24-2002, 02:28 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts