LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhclient is overwriting /etc/yp.conf interfering with domain access (https://www.linuxquestions.org/questions/linux-networking-3/dhclient-is-overwriting-etc-yp-conf-interfering-with-domain-access-536889/)

gdepp 03-12-2007 03:44 PM

dhclient is overwriting /etc/yp.conf interfering with domain access
 
I'm having an issue with dhclient.script overwriting yp.conf. In my particular configuration, my system has a defined domain which is in part configured via yp.conf ("domain NISDOMAIN server SERVER") as well as in /etc/sysconfig/network ("NISDOMAIN=NISDOMAIN"). It seems to need both to find the domain server.

I'm running rPath Linux (Red Hat variant). I considered setting:

PEERDNS=No

but believe that the automatic overwriting of /etc/resolv is proper.

Is there a method for supressing the messing with yp.conf only?

Thanks Greg

MQMan 03-12-2007 05:26 PM

That would depend on which dhcp client you use.

I run dhcpcd, where the -Y option give "Prevents dhcpcd from replacing existing <etcDir>/yp.conf file".

Cheers.

gdepp 03-12-2007 06:56 PM

I'm using dhclient which appears to not have that particular option.


All times are GMT -5. The time now is 04:19 AM.