man dhcpcd

      -R     Prevents dhcpcd from replacing existing /etc/resolv.conf file.

into the /etc/conf.d/net file - Dhcp options

Tim Igoe
http://tim.igoe.me.uk

Colin wrote:

> I have two nameservers.  DHCP detects the second one, but since I have
> a computer acting as a gateway instead of the access point, I can't
> get a net connection until I edit /etc/resolv.conf.
>
> I tried chmodding /etc/resolv.conf to 111, but the system re-chmodded
> it after a test reboot.  So instead I added this to
> /etc/conf.d/local.start:
>    echo "nameserver 192.168.0.1" > /etc/resolv.conf
>    echo "nameserver 192.168.0.254" >> /etc/resolv.conf
>
> Is there another way?
>
> -- 
> Colin
>

-- 
[email protected] mailing list

Reply via email to