View previous topic :: View next topic |
Author |
Message |
tommoyer324 Tux's lil' helper


Joined: 06 Jun 2005 Posts: 104 Location: USA
|
Posted: Tue May 23, 2006 8:28 am Post subject: softlevels and resolv.conf |
|
|
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 |
|
 |
derverstand Guru


Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Tue May 23, 2006 8:57 am Post subject: |
|
|
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 |
|
 |
tommoyer324 Tux's lil' helper


Joined: 06 Jun 2005 Posts: 104 Location: USA
|
Posted: Tue May 23, 2006 9:01 am Post subject: |
|
|
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 |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
 |
tommoyer324 Tux's lil' helper


Joined: 06 Jun 2005 Posts: 104 Location: USA
|
Posted: Tue May 23, 2006 9:38 am Post subject: |
|
|
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 |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
 |
|