Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
softlevels and 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
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Tue May 23, 2006 8:28 am    Post subject: softlevels and resolv.conf Reply with quote

I have two different wired networks that I need to connect to with my laptop, and I have almost everything setup with two different runlevels, but the one problem I am having is correctly setting /etc/resolv.conf. The /etc/conf.d/net.example file shows how to set these based on a wireless setup, but not for a wired setup. Any ideas on how to correctly set /etc/resolv.conf for the two different configurations?
Back to top
View user's profile Send private message
derverstand
Guru
Guru


Joined: 15 Dec 2005
Posts: 511
Location: /dev/null

PostPosted: Tue May 23, 2006 8:57 am    Post subject: Reply with quote

Hi,

You got more than one possibility to do that:
(1) Try ifplugd
(2) If you use softlevels: Write an init-script that creates the resolv.conf at startup
(3) Configure everything in /etc/conf.d/net

Best regards!
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Tue May 23, 2006 9:01 am    Post subject: Reply with quote

I was looking at number 3 for a while, but cannot seem to get the syntax correct to set the dns server, the dns domain, and dns search domain. As I said before, there are examples specific to a wireless network but none for a wired network. Could somone please post a working example. I thought it would be something to the effect of

Code:

dns_servers_eth0=( "<server IP 1>", "<server IP 2>")
dns_domain_eth0="my-domain-name"
dns_search_domains_eth0="my-search-domain"


but this doesn't work.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue May 23, 2006 9:31 am    Post subject: Reply with quote

tommoyer324 wrote:
Code:

dns_servers_eth0=( "<server IP 1>", "<server IP 2>")
dns_domain_eth0="my-domain-name"
dns_search_domains_eth0="my-search-domain"


Code:
dns_servers_eth0=( "<server IP 1>" "<server IP 2>")
dns_domain_eth0="my-domain-name"
dns_search_eth0="my-search-domain"


Works For Me (tm) using baselayout-1.12
_________________
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
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Tue May 23, 2006 9:38 am    Post subject: Reply with quote

Quote:

Works For Me (tm) using baselayout-1.12


I'm not using that baselayout because I am running stable, I don't like using ~arch at all unless I need a specific package. If I ever find time to do some development in gentoo, I would consider switching a machine to ~arch, but at this point I am going to stick with stable. Does anyone know if the configuration posted in my last post works on stable baselayout?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue May 23, 2006 1:48 pm    Post subject: Reply with quote

tommoyer324 wrote:
Quote:

Works For Me (tm) using baselayout-1.12


I'm not using that baselayout because I am running stable, I don't like using ~arch at all unless I need a specific package.


Fair enough. I just released 1.12.0 with the intent of it being marked stable in the usual 30 days.
_________________
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
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