<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>239098</bug_id>
          
          <creation_ts>2008-09-29 23:49 0000</creation_ts>
          <short_desc>net-misc/dhcpcd-4.0.1-r1 creates empty /etc/resolv.conf</short_desc>
          <delta_ts>2008-10-02 01:36:14 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kovacsp3@comcast.net</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>christoph.safferling@uni-konstanz.de</cc>
    
    <cc>paolo.pedroni@iol.it</cc>
    
    <cc>roy@marples.name</cc>

      

      
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-09-29 23:49:44 0000</bug_when>
            <thetext>I upgraded to dhcpcd-4.0.1-r1 last night from 3.2.3 and I notice that it created an empty /etc//resolv.conf instead of my usual nameserver 192.168.0.101 entry.

Not sure if this is a configuration issue or a bug frankly.

I run net-dns/djbdns-1.05-r21 (dnscache) and dhcpcd 3.2.3 dis correctly create the &apos;nameserver 192.168.0.101&apos; entry in /etc/resolv.conf, but 4.0.1-r1 creates no entries -- just the head/tail comment.

Here is my /etc/conf.d/net:

dns_domain=( &quot;lan.net&quot; )
dns_search=( &quot;lan.net&quot; )
config_eth0=( &quot;dhcp&quot; )
dhcp_eth0=&quot;nodns&quot;
dns_servers_eth0=( &quot;192.168.0.101&quot; )

3.2.3 creates the following (correct) /etc/resolv.conf:

#Generated by net-scripts for interface eth0
domain lan.net
search lan.net
nameserver 192.168.0.101

but 4.0.1-r1 does not populate that file with any non-comment entries.

Help!



Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-09-29 23:59:33 0000</bug_when>
            <thetext>*** Bug 239100 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-09-30 00:18:59 0000</bug_when>
            <thetext>same problem with or without the new compat USE flag</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-09-30 02:08:59 0000</bug_when>
            <thetext>Please post your `emerge --info&apos; too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-09-30 02:16:06 0000</bug_when>
            <thetext>#emerge --info

Portage 2.2_rc11 (default/linux/x86/2008.0/desktop, gcc-4.2.4, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-glibc2.0
Timestamp of tree: Tue, 30 Sep 2008 01:17:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS=&quot;x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=native -O2 -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-march=native -O2 -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache distcc distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
LANG=&quot;en_US.utf8&quot;
LC_ALL=&quot;en_US.utf8&quot;
LDFLAGS=&quot;-Wl,-O1&quot;
LINGUAS=&quot;en en_US&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
USE=&quot;X aalib acl acpi alsa bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo fbcon firefox gif gpm gstreamer gtk hal iconv imlib isdnlog jpeg kerberos libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session slang spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb v4l vorbis win32codecs x86 xcomposite xml xml2 xorg xv xvid zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol&quot; APACHE2_MODULES=&quot;actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en en_US&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nv nvidia&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>roy@marples.name</who>
            <bug_when>2008-09-30 07:24:31 0000</bug_when>
            <thetext>Please post details of how dhcpcd was started on your systems
ps ax | grep dhcpcd</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2008-09-30 10:25:23 0000</bug_when>
            <thetext>I&apos;m posting mine, since I have the same problem:

# ps ax | grep dhcpcd
12381 ?        Ss     0:00 dhcpcd -r 1.236.104.98 -N -M -R -m 2 eth0
14637 pts/0    R+     0:00 grep --colour=auto dhcpcd

My /etc/conf.d/net is as follows:

# cat /etc/conf.d/net
dns_domain_lo=&quot;casa&quot;
nis_domain_lo=&quot;casa&quot;
modules_eth0=&quot;dhcpcd&quot;
dhcpcd_eth0=&quot;-r 1.236.104.98 -N -M -R&quot;
dns_servers_eth0=&quot;208.67.222.222 208.67.220.220&quot;

My generated /etc/resolv.conf is:
# cat /etc/resolv.conf

# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line

# emerge --info
Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Timestamp of tree: Tue, 30 Sep 2008 05:35:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS=&quot;amd64&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=k8 -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-march=k8 -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache collision-protect distcc distlocks fixpackages metadata-transfer sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.muntinternet.net/pub/gentoo/ ftp://mirror.ing.unibo.it/g entoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.ing.unibo.it/gentoo/&quot;
LANG=&quot;it_IT.UTF-8&quot;
LC_ALL=&quot;it_IT.UTF-8&quot;
LDFLAGS=&quot;-Wl,-O1&quot;
LINGUAS=&quot;it&quot;
MAKEOPTS=&quot;-j14&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://10.20.30.18/gentoo-portage&quot;
USE=&quot;X Xaw3d a52 aac aalib acpi alsa amd64 ao arts audiofile avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt cups curl dbus dga dio dri dvd dvdr dvdread emboss encode exif expat fam fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gd gdbm ggi gif glut gmp gnutls gphoto2 gpm gtk guile hal htmlhandbook iconv idn ieee1394 imagemagick imlib isdnlog jack java javascript jbig jikes jpeg jpeg2k kde kdeenablefinal kdeprefix lcms libcaca libnotify libsamplerate lm_sensors lua lzo mad maildir matroska memlimit midi mime mmap mmx mng mozilla mp3 mpeg mpi mplayer mudflap multilib ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oss pam pch pcre pdf perl png portaudio posix ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline recode reflection ruby samba scanner sdl session sharedmem shorten sndfile sockets sox speex spell spl sse sse2 ssl startup-notification svg symlink sysfs syslog sysvipc tcl tcpd theora threads tidy tiff timidity tk truetype unicode usb vcd vim-syntax vorbis wmf wxwindows x264 xcb xcomposite xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo zeroconf zlib&quot; ALSA_CARDS=&quot;intel-8x0 virmidi&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol&quot; APACHE2_MODULES=&quot;actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias&quot; CAMERAS=&quot;kodak ptp2&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;it&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nvidia&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>roy@marples.name</who>
            <bug_when>2008-09-30 11:46:48 0000</bug_when>
            <thetext>Created an attachment (id=166825)
Skip hooks correctly for compat options

This patch should fix things. Please test and report back!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2008-09-30 12:25:03 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; Created an attachment (id=166825) [edit]
&gt; Skip hooks correctly for compat options
&gt; 
&gt; This patch should fix things. Please test and report back!
&gt; 

Nope, it does not work. :-(</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-09-30 12:34:25 0000</bug_when>
            <thetext>Paolo,

Did you test with USE=compat?  That patch would require compat.

Phil

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-09-30 12:50:58 0000</bug_when>
            <thetext>I also tried the patch here and can report that it does not help.

Still getting:

# cat /etc/resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line

Here is my command line as reported by ps:

# ps ax | grep dhcpcd
17994 ?        Ss     0:00 /sbin/dhcpcd -h porthos -R eth0

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2008-09-30 13:05:56 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; Paolo,
&gt; 
&gt; Did you test with USE=compat?  That patch would require compat.
&gt; 
&gt; Phil
&gt; 

Of course I did.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>roy@marples.name</who>
            <bug_when>2008-09-30 13:11:30 0000</bug_when>
            <thetext>After applying the patch, you&apos;ll need to STOP dhcpcd, restore /etc/resolv.conf and then restart dhcpcd. After that you should be fine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-09-30 13:40:55 0000</bug_when>
            <thetext>I need /etc/resolv.conf to be created from the Gentoo /etc/conf.d/net file.

With 3.2.3, you get exactly that behavior:

# rm /etc/resolv.conf
# /etc/init.d/net.eth0 restart
# cat /etc/resolv.conf
# Generated by net-scripts for interface eth0
domain lan.net
search lan.net
nameserver 192.168.0.101

Having 4.0.1-r1 not clobber an existing /etc/resolv.conf isn&apos;t enough.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2008-09-30 14:49:51 0000</bug_when>
            <thetext>(In reply to comment #12)
&gt; After applying the patch, you&apos;ll need to STOP dhcpcd, restore /etc/resolv.conf
&gt; and then restart dhcpcd. After that you should be fine.
&gt; 

I think it doesn&apos;t work either, but I&apos;m not sure, as I&apos;m not home on the concerned computer. More from me as soon as I get home.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>roy@marples.name</who>
            <bug_when>2008-09-30 22:39:14 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Having 4.0.1-r1 not clobber an existing /etc/resolv.conf isn&apos;t enough.

Eh? That&apos;s exactly what earlier versions of dhcpcd do with with -R flag - they don&apos;t clobber /etc/resolv.conf and this patch enables that.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>charlie.brackett@gmail.com</who>
            <bug_when>2008-09-30 23:56:26 0000</bug_when>
            <thetext>Your patch fixes the problem for me.

My settings from dns_servers_eth2 now appear in /etc/resolv.conf instead of the blank file generated from dhcpcd.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-10-01 01:02:19 0000</bug_when>
            <thetext>I carefully reapplied the patch and rebooted this time.

# cat /etc/resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line

I don&apos;t run anything other than dhcpcd, no resolvconf, no dnsmasq, nothing else.

The patch does not work for me.  If I mask off 4.0.1 and go back to 3.2.3, everything is fine, i.e. _somthing_ creates my /etc/resolv.conf if its missing and dhcpcd leaves it alone.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>roy@marples.name</who>
            <bug_when>2008-10-01 05:18:53 0000</bug_when>
            <thetext>(In reply to comment #17)
&gt; I carefully reapplied the patch and rebooted this time.
&gt; 
&gt; # cat /etc/resolv.conf
&gt; # Generated by dhcpcd
&gt; # /etc/resolv.conf.head can replace this line
&gt; # /etc/resolv.conf.tail can replace this line
&gt; 
&gt; I don&apos;t run anything other than dhcpcd, no resolvconf, no dnsmasq, nothing
&gt; else.
&gt; 
&gt; The patch does not work for me.  If I mask off 4.0.1 and go back to 3.2.3,
&gt; everything is fine, i.e. _somthing_ creates my /etc/resolv.conf if its missing
&gt; and dhcpcd leaves it alone.

By don&apos;t you add a comment or restore /etc/resolv.conf to how it should be and then restart net.eth0?
Then we will know if dhcpcd is still clobbering it for you OR baselayout isn&apos;t correctly creating /etc/resolv.conf
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-10-01 05:32:33 0000</bug_when>
            <thetext># cat /etc/resolv.conf
#
# This Comment added for testing purposes.
#
# Generated by net-scripts for interface eth0
domain lan.net
search lan.net
nameserver 192.168.0.101

# /etc/init.d/net.eth0 restart

 * Stopping dovecot ...                                                                           [ ok ]
 * Unmounting network filesystems ...                                                             [ ok ]
 * Stopping ntpd ...                                                                              [ ok ]
 * samba -&gt; stop: smbd ...                                                                        [ ok ]
 * samba -&gt; stop: nmbd ...                                                                        [ ok ]
 * Stopping sshd ...                                                                              [ ok ]
 * Stopping eth0
 *   Bringing down eth0
 *     Stopping dhcpcd on eth0 ...                                                                [ ok ]
 *     Shutting down eth0 ...                                                                     [ ok ]
 * Starting eth0
 *   Bringing up eth0
 *     dhcp
 *       Running dhcpcd ...                                                                       [ ok ]
 *       eth0 received address 192.168.0.101/24
 * Starting dovecot ...                                                                           [ ok ]
 * Mounting network filesystems ...                                                               [ ok ]
 * Starting ntpd ...                                                                              [ ok ]
 * samba -&gt; start: smbd ...                                                                       [ ok ]
 * samba -&gt; start: nmbd ...                                                                       [ ok ]
 * Starting sshd ...                                                                              [ ok ]

# cat /etc/resolv.conf
# Generated by net-scripts for interface eth0
domain lan.net
search lan.net
nameserver 192.168.0.101

You can see that the eth0 restart causes the resolv.conf to be regenerated.
The comment I added is gone.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-10-01 05:34:52 0000</bug_when>
            <thetext>My previous comment was for 3.2.3, i.e. the version that works.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2008-10-01 17:42:25 0000</bug_when>
            <thetext>(In reply to comment #12)
&gt; After applying the patch, you&apos;ll need to STOP dhcpcd, restore /etc/resolv.conf
&gt; and then restart dhcpcd. After that you should be fine.
&gt; 

It does not work for me either.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>roy@marples.name</who>
            <bug_when>2008-10-01 18:38:21 0000</bug_when>
            <thetext>Created an attachment (id=166928)
Skip hooks correctly.

OK, this new patch works with config in comment #6.
Does this fix everyone?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2008-10-01 18:56:02 0000</bug_when>
            <thetext># cat /etc/resolv.conf
# Generated by net-scripts for interface eth0
domain lan.net
search lan.net
nameserver 192.168.0.101

# /etc/init.d/net.eth0 restart
 * Stopping dovecot ...                                                                           [ ok ]
 * Unmounting network filesystems ...                                                             [ ok ]
 * Stopping ntpd ...                                                                              [ ok ]
 * samba -&gt; stop: smbd ...                                                                        [ ok ]
 * samba -&gt; stop: nmbd ...                                                                        [ ok ]
 * Stopping sshd ...                                                                              [ ok ]
 * Stopping eth0
 *   Bringing down eth0
 *     Stopping dhcpcd on eth0 ...                                                                [ ok ]
 *     Shutting down eth0 ...                                                                     [ ok ]
 * Starting eth0
 *   Bringing up eth0
 *     dhcp
 *       Running dhcpcd ...
eth0: dhcpcd 4.0.1 starting
eth0: waiting for carrier
eth0: carrier acquired
eth0: broadcasting for a lease
eth0: offered 192.168.0.101 from 192.168.0.1
eth0: checking 192.168.0.101 is available on attached networks
eth0: acknowledged 192.168.0.101 from 192.168.0.1
eth0: leased 192.168.0.101 for 86400 seconds                                                      [ ok ]
 *       eth0 received address 192.168.0.101/24
 * Starting dovecot ...                                                                           [ ok ]
 * Mounting network filesystems ...                                                               [ ok ]
 * Starting ntpd ...                                                                              [ ok ]
 * samba -&gt; start: smbd ...                                                                       [ ok ]
 * samba -&gt; start: nmbd ...                                                                       [ ok ]
 * Starting sshd ...                                                                              [ ok ]

# cat /etc/resolv.conf
# Generated by net-scripts for interface eth0
domain lan.net
search lan.net
nameserver 192.168.0.101


Looks good now!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>charlie.brackett@gmail.com</who>
            <bug_when>2008-10-01 18:57:56 0000</bug_when>
            <thetext>The new patch works for me too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2008-10-01 20:56:30 0000</bug_when>
            <thetext>4.0.2 is in the tree with the fix now, will fast-track to stable.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>166825</attachid>
            <date>2008-09-30 11:46 0000</date>
            <desc>Skip hooks correctly for compat options</desc>
            <filename>dhcpcd-skip-hook.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGRoY3BjZC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGRoY3BjZC5jCShyZXZpc2lvbiAxMDA5KQor
KysgZGhjcGNkLmMJKHdvcmtpbmcgY29weSkKQEAgLTc4MywxNCArNzgzLDE3IEBACiAJCWNhc2Ug
J0gnOiAvKiBGQUxMVEhST1VHSCAqLwogCQljYXNlICdNJzoKIAkJCWRlbF9vcHRpb25fbWFzayhv
cHRpb25zLT5yZXF1ZXN0bWFzaywgREhPX01UVSk7CisJCQlhZGRfZW52aXJvbihvcHRpb25zLCAi
c2tpcF9ob29rPW10dSIsIDApOwogCQkJYnJlYWs7CiAJCWNhc2UgJ04nOgogCQkJZGVsX29wdGlv
bl9tYXNrKG9wdGlvbnMtPnJlcXVlc3RtYXNrLCBESE9fTlRQU0VSVkVSKTsKKwkJCWFkZF9lbnZp
cm9uKG9wdGlvbnMsICJza2lwX2hvb2s9bnRwLmNvbmYiLCAwKTsKIAkJCWJyZWFrOwogCQljYXNl
ICdSJzoKIAkJCWRlbF9vcHRpb25fbWFzayhvcHRpb25zLT5yZXF1ZXN0bWFzaywgREhPX0ROU1NF
UlZFUik7CiAJCQlkZWxfb3B0aW9uX21hc2sob3B0aW9ucy0+cmVxdWVzdG1hc2ssIERIT19ETlNE
T01BSU4pOwogCQkJZGVsX29wdGlvbl9tYXNrKG9wdGlvbnMtPnJlcXVlc3RtYXNrLCBESE9fRE5T
U0VBUkNIKTsKKwkJCWFkZF9lbnZpcm9uKG9wdGlvbnMsICJza2lwX2hvb2s9cmVzb2x2LmNvbmYi
LCAwKTsKIAkJCWJyZWFrOwogCQljYXNlICdTJzoKIAkJCWFkZF9vcHRpb25fbWFzayhvcHRpb25z
LT5yZXF1ZXN0bWFzaywgREhPX01TQ1NSKTsKQEAgLTc5OCw2ICs4MDEsNyBAQAogCQljYXNlICdZ
JzoKIAkJCWRlbF9vcHRpb25fbWFzayhvcHRpb25zLT5yZXF1ZXN0bWFzaywgREhPX05JU1NFUlZF
Uik7CiAJCQlkZWxfb3B0aW9uX21hc2sob3B0aW9ucy0+cmVxdWVzdG1hc2ssIERIT19OSVNET01B
SU4pOworCQkJYWRkX2Vudmlyb24ob3B0aW9ucywgInNraXBfaG9vaz15cC5jb25mIiwgMCk7CiAJ
CQlicmVhazsKICNlbmRpZgogCQlkZWZhdWx0Ogo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>166928</attachid>
            <date>2008-10-01 18:38 0000</date>
            <desc>Skip hooks correctly.</desc>
            <filename>dhcpcd-skip-hook.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGRoY3BjZC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGRoY3BjZC5jCShyZXZpc2lvbiAxMDA5KQor
KysgZGhjcGNkLmMJKHdvcmtpbmcgY29weSkKQEAgLTc4MywxNCArNzgzLDE3IEBACiAJCWNhc2Ug
J0gnOiAvKiBGQUxMVEhST1VHSCAqLwogCQljYXNlICdNJzoKIAkJCWRlbF9vcHRpb25fbWFzayhv
cHRpb25zLT5yZXF1ZXN0bWFzaywgREhPX01UVSk7CisJCQlhZGRfZW52aXJvbihvcHRpb25zLCAi
c2tpcF9ob29rcz1tdHUiLCAwKTsKIAkJCWJyZWFrOwogCQljYXNlICdOJzoKIAkJCWRlbF9vcHRp
b25fbWFzayhvcHRpb25zLT5yZXF1ZXN0bWFzaywgREhPX05UUFNFUlZFUik7CisJCQlhZGRfZW52
aXJvbihvcHRpb25zLCAic2tpcF9ob29rcz1udHAuY29uZiIsIDApOwogCQkJYnJlYWs7CiAJCWNh
c2UgJ1InOgogCQkJZGVsX29wdGlvbl9tYXNrKG9wdGlvbnMtPnJlcXVlc3RtYXNrLCBESE9fRE5T
U0VSVkVSKTsKIAkJCWRlbF9vcHRpb25fbWFzayhvcHRpb25zLT5yZXF1ZXN0bWFzaywgREhPX0RO
U0RPTUFJTik7CiAJCQlkZWxfb3B0aW9uX21hc2sob3B0aW9ucy0+cmVxdWVzdG1hc2ssIERIT19E
TlNTRUFSQ0gpOworCQkJYWRkX2Vudmlyb24ob3B0aW9ucywgInNraXBfaG9va3M9cmVzb2x2LmNv
bmYiLCAwKTsKIAkJCWJyZWFrOwogCQljYXNlICdTJzoKIAkJCWFkZF9vcHRpb25fbWFzayhvcHRp
b25zLT5yZXF1ZXN0bWFzaywgREhPX01TQ1NSKTsKQEAgLTc5OCw2ICs4MDEsNyBAQAogCQljYXNl
ICdZJzoKIAkJCWRlbF9vcHRpb25fbWFzayhvcHRpb25zLT5yZXF1ZXN0bWFzaywgREhPX05JU1NF
UlZFUik7CiAJCQlkZWxfb3B0aW9uX21hc2sob3B0aW9ucy0+cmVxdWVzdG1hc2ssIERIT19OSVNE
T01BSU4pOworCQkJYWRkX2Vudmlyb24ob3B0aW9ucywgInNraXBfaG9va3M9eXAuY29uZiIsIDAp
OwogCQkJYnJlYWs7CiAjZW5kaWYKIAkJZGVmYXVsdDoK
</data>        

          </attachment>
    </bug>

</bugzilla>