Bug 65578 - create PEERNIS to prevent dhcpcd clobbering /etc/yp.conf
Summary: create PEERNIS to prevent dhcpcd clobbering /etc/yp.conf
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts   
(Show other bugs)
Version: 7.3
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2002-05-27 21:09 UTC by Bowe Strickland
Modified: 2014-03-17 02:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-06-12 07:08:43 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Bowe Strickland 2002-05-27 21:09:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020408

Description of problem:
When raising a dhcp configured interface, dhcpcd clobbers /etc/yp.conf
with any received NISSERVER information.  If this information is 
partial or incorrect, this can be annoying.  Create a PEERNIS ifcfg
variable, akin to PEERDNS, to allow users to disable this behavior.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.edit /etc/yp.conf
2.ifup eth0 (from server supplying NISDOMAIN)
3.cat /etc/yp.conf

Additional info:

patches against initscripts-6.67-1:

--- ifup	Sun May 26 22:55:38 2002
+++ ifup.peernis	Sun May 26 23:15:47 2002
@@ -150,6 +150,10 @@
        PUMPARGS="${PUMPARGS} -d"
+    if [ "${PEERNIS}" = "no" ]; then
+#       PUMPARGS="${PUMPARGS} -?"  #  need to look this up for pump
+    fi
     echo -n $"Determining IP information for ${DEVICE}..."
     # DHCP clients need DNS to be available, and we don't know

--- sysconfig.txt	Mon Mar 25 09:26:55 2002
+++ sysconfig.txt.peernis	Sun May 26 23:12:42 2002
@@ -516,6 +516,10 @@
       modify /etc/resolv.conf if peer uses msdns extension (PPP only) or
       DNS{1,2} are set, or if using pump or dhcpcd. default to "yes".
+    PEERNIS=yes|no
+      modify /etc/yp.conf when using DHCP configured interfaces if 
+      NISDOMAIN is received from DHCP server.  default to "yes".
+      Currently applies to dhcpcd only.
       provide DNS addresses that are dropped into the resolv.conf
       file if PEERDNS is not set to "no".

Comment 1 Bill Nottingham 2002-09-12 15:06:21 UTC
You can set options for the client with DHCPDARGS.

Note You need to log in before you can comment on or make changes to this bug.