On Sat, Aug 21, 2010 at 9:25 AM, Dale <rdalek1...@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:
>
> r...@smoker / # cat /etc/resolv.conf
> # Generated by net-scripts for interface eth2
> nameserver 8.8.8.8
> nameserver 8.8.4.4
>
> r...@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

Reply via email to