-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The dhcp client (root privileges -- chmodding resolv.conf won't help)
overwrites /etc/resolv.conf when it gets an ip address.  Do you control
the dhcp server?  I have a line in my /etc/dhcpd.conf (OpenBSD) like:
        option domain-name-servers 192.168.0.1, 192.168.0.254;
which ends up in the /etc/resolf.conf of my workstation.

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
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCfYzgBOPsJyAQkeARAoBIAKDLhQmYckkLD/FeZqlfnOo5YSv7XgCeM1pN
P78KDlvZtjlZsO4EkanVlh4=
=TwCQ
-----END PGP SIGNATURE-----
-- 
[email protected] mailing list

Reply via email to