From: Jorge Almeida <jjalmeida@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] DHCPCD and nameserver
Date: Sat, 21 Aug 2010 09:49:21 +0059 [thread overview]
Message-ID: <AANLkTimzu_4YbsP9wHoFtuRiaaZcQLRA9a8wGEP00PEJ@mail.gmail.com> (raw)
In-Reply-To: <4C6F8DA2.1030805@gmail.com>
On Sat, Aug 21, 2010 at 9:25 AM, Dale <rdalek1967@gmail.com> wrote:
>> I don't know about dhcpcd, but I'm using dhclient, and it works like this:
>> $cat /etc/resolv.conf
Oops... It was "cat /etc/conf.d/net"...
>> config_eth0=("dhcp")
>> modules_eth0=("dhclient")
>> dhcp_eth0="nodns"
>>
>
> I kept playing with this because I did it once before and knew it could be
> done. I did finally figure out how to get it to work. It appears the
> syntax has changed a little bit. This is what I ended up with after some
> trial and error, maybe a little tooth pulling too. ;-) This is my net
> file:
>
> modules="dhcpcd"
> config_eth2="dhcp"
> dhcp_eth2="nodns"
> dns_servers_eth2="8.8.8.8 8.8.4.4"
>
> Now I get this in resolv.conf:
>
> root@smoker / # cat /etc/resolv.conf
> # Generated by net-scripts for interface eth2
> nameserver 8.8.8.8
> nameserver 8.8.4.4
>
> root@smoker / #
>
> So, it's working now. It's not quite the same config as last time but it
> works.
>
OK, now I know how to do it also with dhcpcd.
Cheers.
Jorge
next prev parent reply other threads:[~2010-08-21 8:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 6:16 [gentoo-user] DHCPCD and nameserver Dale
2010-08-21 8:16 ` Jorge Almeida
2010-08-21 8:26 ` Dale
2010-08-21 8:50 ` Jorge Almeida [this message]
2010-08-21 9:30 ` Marc Joliet
2010-08-21 22:24 ` Dale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimzu_4YbsP9wHoFtuRiaaZcQLRA9a8wGEP00PEJ@mail.gmail.com \
--to=jjalmeida@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox