Bug 158146
| Summary: | PEERDNS setting gets ignored | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mate Wierdl <mw-redhat> |
| Component: | dhcp | Assignee: | 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 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-06-01 21:35:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
meant /etc/resolv.conf 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
"CONDITIONAL EXPRESSIONS" states :
"
string1 == string2
True if the strings are equal.
= may be used in place of == for strict POSIX
compliance.
".
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
untouched.
Please let me know exactly how you reproduce this problem.
Do you use PPP ?
|
Description of problem: PEERDNS=no setting gets ignored Version-Release number of selected component (if applicable): dhclient-3.0.1-42_FC3 How reproducible: Always 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