multiple ppp tunnels and eth0... dns priority in resolv.conf
Hi all,
I have multiple ppp tunnels and an ethernet interface.
Depending on where I am, I need ppp tunnels to get to the office or just an eth0 interface.
Recently I configured my linux so I can use my mobile phone to get on the internet.
When using wired, I only need one ppp tunnel. Then the dns settings of this tunnel should have priority on the eth0 settings.
When I go online using my mobile phone, I want that the dns settings of this will get precedence.
And sometimes I need to log in to the office through my mobile phone.
This means I need 2 tunnels and the dns settings for the office should have priority on those from the tunnel to my mobile phone.
Normally resolvconf can handle this problem.
However, I am searching how I can say what "nameserver" entries should come first (depending on what interface does provide them).
I am pretty sure this is possible to change the order in a config file but I can't seem to find it.
I am using Gentoo... maybe there is something specific for my distro.
Help would be very appreciated!
Last edited by deadeyes; 12-02-2009 at 10:11 AM.
|