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! |
This may not be the "best" place to read the solution, but the comments on this page: http://docs.openmoko.org/trac/ticket/2056 seem to address exactly what you describe, as well as mentioning some network configuration files.
It does not mention a particular distro that I can tell, but the situation sounds similar enough to what you wrote, that it may give you the clues you need to get it sorted. Kind regards, Sasha |
Quote:
I already have resolvconf installed. I just thought there was some possibility to specify the order of interface dns entries. This is related to resolvconf as this tool adds the dns entries in the actual /etc/resolv.conf |
This topic is solved...
Thanks to the Gentoo forums! http://forums.gentoo.org/viewtopic-p...5.html#6082565 It seems that this feature is barely known or documented. In /etc/resolvconf.conf: interface_order="lo tun0 tun1 eth0 *" Add such a line to have the order of the dns entries changed. I hope this helps some other people! |
All times are GMT -5. The time now is 03:17 PM. |