Bug 158146

Summary: PEERDNS setting gets ignored
Product: [Fedora] Fedora Reporter: Mate Wierdl <mw-redhat>
Component: dhcpAssignee: Jason Vas Dias <jvdias>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-01 17:35:40 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Mate Wierdl 2005-05-18 22:46:10 EDT
Description of problem:

PEERDNS=no setting gets ignored

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

How reproducible:


Steps to Reproduce:
1. set PEERDNS=no
2. run dhclient-script
3. check that the PEERDNS setting got ignored (new /etc/resolve.conf gets created)
Actual results:

Expected results:

Additional info:

The problem is the double "==" in 

if [ "${PEERDNS}" == "no" ]; then

Change it to 

if [ "${PEERDNS}" = "no" ]; then
Comment 1 Mate Wierdl 2005-05-18 22:49:05 EDT
meant /etc/resolv.conf
Comment 2 Jason Vas Dias 2005-05-31 16:48:13 EDT
I cannot reproduce this problem.
While the 
  if [ "${PEERDNS}" == "no" ]; then
clause might be sloppy "C-programmer" shell programming,
it does in fact work, and the bash man-page section on
    string1 == string2
              True if the strings are equal.  
              = may be used in place of == for strict POSIX
This clause has remained unchanged in dhclient-script since
dhcp-3.0pl1 in RHL-8.0 .

When I put "PEERDNS=no" in /etc/sysconfig/network-scripts/ifcfg-eth0,
and then do "ifdown eth0; ifup eth0", my resolv.conf remains 

Please let me know exactly how you reproduce this problem.
Do you use PPP ?