LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-02-2009, 10:08 AM   #1
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
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.
 
Old 12-02-2009, 01:37 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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
 
Old 12-03-2009, 02:29 AM   #3
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Original Poster
Rep: Reputation: 79
Quote:
Originally Posted by GrapefruiTgirl View Post
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
Thank you for your effort but it does not really solves my problem.
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
 
Old 12-03-2009, 03:15 PM   #4
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Original Poster
Rep: Reputation: 79
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NetworkManager & gprs/ppp DNS: after using wlan/eth0, DNS for ppp doesn't work mtess Linux - Networking 3 03-12-2008 03:31 PM
multiple DNS entries to /etc/resolv.conf noir911 Linux - Networking 1 02-26-2007 11:43 PM
Issue with resolv.conf : Multiple DNS with two NIC's lank23 Linux - Networking 4 01-30-2007 09:38 PM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
Resolv.conf issues when switching from eth to ppp Supp0rtLinux Linux - Networking 2 12-30-2001 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration