Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED: multiple tunnels order of dns entries in resolv.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
deadeyes
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2007
Posts: 83

PostPosted: Wed Dec 02, 2009 10:53 pm    Post subject: SOLVED: multiple tunnels order of dns entries in resolv.conf Reply with quote

Hi all,

I have multiple ppp tunnels and sometimes I need 2 of them or 1 ppp tunnel with a network interface.

However, the order of dns entries is not as I want.
If I am not mistaken there is a possibility to say what entries should come first in /etc/resolv.conf when using resolvconf.

Does anyone knows how I can fix this?

Thanks in advance


Last edited by deadeyes on Thu Dec 03, 2009 9:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Dec 03, 2009 4:12 pm    Post subject: Reply with quote

You can control the order of entries on a per interface basis using resolvconf. IE, the order of the interfaces

/etc/resolvconf.conf
Code:
interface_order="lo tun0 tun1 eth0 *"


You may also want to look at private_interfaces if your tunnel configures domains. See resolvconf.conf(5) for details.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
deadeyes
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2007
Posts: 83

PostPosted: Thu Dec 03, 2009 9:04 pm    Post subject: Reply with quote

UberLord wrote:
You can control the order of entries on a per interface basis using resolvconf. IE, the order of the interfaces

/etc/resolvconf.conf
Code:
interface_order="lo tun0 tun1 eth0 *"


You may also want to look at private_interfaces if your tunnel configures domains. See resolvconf.conf(5) for details.


Yes yes yes!!! :D

That was exactly what I was looking for! I had seen it before but couldn't remember.

And it seems to be very difficult to find on the internet (even the site that is listed with the package in portage does not clearly lists this possibility)

Thanks alot! (I was really frustrated about this :p)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum