Bug 110250 - no refresh of resolv.conf via dhcp
Summary: no refresh of resolv.conf via dhcp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: dhcpcd
Version: 9
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-17 15:41 UTC by Need Real Name
Modified: 2007-04-18 16:59 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-07-16 13:43:35 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:566 0 normal SHIPPED_LIVE Updated dhcp and dhclient packages 2005-05-26 04:00:00 UTC

Description Need Real Name 2003-11-17 15:41:21 UTC
Description of problem:


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


How reproducible:
Always

Steps to Reproduce:
1. Boot PC on network A obtaining IP address via dhcp having DNS info
for A
2. Shutdown PC
3. Boot PC on network B obtaining IP address via dhcp having DNS info
for B
  
Actual results:

The initial resolv.conf file stays in /etc instead of being replaced
by a new one. The IP number is that of the network attached to. The
second boot is extremely slow on all network related components
(sendmail, httpd, gnome, etc.)
Expected results:
A new resolv.conf file based on the info provided by the dhcp server
of the attached network.

Additional info:
I found the following (recent) post via Google describing more or less
the same problem: 
http://www.westernlug.org/mail-archives/2003-November/007938.html

Regards,

Paul

Comment 1 Daniel Walsh 2003-12-29 13:22:28 UTC
Looks like dhclient will not rewrite the /etc/resolv.conf on a renewal
of an IP Address.

  if [ x$reason != xRENEW ] && [ "${PEERDNS}" != "no" ]; then 
    make_resolv_conf
  fi


If you do a service network restart, does the resolv.conf get updated?


Dan

Comment 2 Need Real Name 2004-01-02 13:25:43 UTC
I tried a network restart (# /etc/init.d network restart) without
success. Removed the resolv.conf and did another restart: no
resolv.conf gets created.

Client system is out of the box RH9. DHCP server at home is out of the
box RH8; at work DHCP is Win2K SP3.

Paul

Comment 3 Jason Vas Dias 2004-07-16 13:43:35 UTC
This doesn't appear to be a problem with latest version of scripts in
dhcp-3.0.1rc14-1 .
It sounds like one of the dhcp servers in this case was not supplying
DNS server addresses ; if the dhcp server does not supply DNS server
addresses, no resolv.conf gets written - this is correct.
The lines Dan mentions:
 if [ x$reason != xRENEW ] && [ "${PEERDNS}" != "no" ]; then 
    make_resolv_conf
 fi
are now:
    if [ "${PEERDNS}" != "no" ]; then 
      make_resolv_conf
    fi
This should fix this issue (if it was caused by the PC renewing
and not by the dhcp server not supplying DNS server addresses).
So, I'm closing this bug as resolved.

Comment 4 John Flanagan 2004-12-21 19:42:09 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-566.html



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