Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239410 - sys-apps/baselayout-1.12.11.1 the NODNS and DNS_SERVERS options do not work with dhcpcd-4.0.1-r1
Summary: sys-apps/baselayout-1.12.11.1 the NODNS and DNS_SERVERS options do not work w...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-03 09:17 UTC by David Williams
Modified: 2008-10-07 08:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams 2008-10-03 09:17:43 UTC
My net file contained the lines

dhcp_eth1="nodns"
dns_servers_eth1=( "194.168.4.100" "194.168.8.100" )

Once I upgraded to dhcpcd 4.0.1 the dhcpcd client started overwriting resolv.conf. 

Reproducible: Always

Steps to Reproduce:
1.Put the dhcp and dns_servers lines into your net file!
2.Make sure you're running dhcpcd vn 4
3.

Actual Results:  
When I did ps -Af | grep dhcpcd after starting the interface it reported:

root     12248     1  0 09:46 ?        00:00:00 /sbin/dhcpcd -h gold -R eth1

so it's taking no notice of the nodns option. I then replaced the dhcp_eth1 line witb:

dhcpcd_eth1="-O domain_name_servers"

stopped the interface and cleared resolv.conf.When I restarted the interface it ignored the dns_servers option and left resolv.conf blank.


Expected Results:  
It should have put the specified dns servers into resolv.conf



emerge --info in case it's relevant

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Fri, 03 Oct 2008 08:18:01 +0000
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: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 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:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB en uk"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bzip2 cli cracklib crypt cups dbus dri fam fat foomaticdb fortran gdbm gif gpm gtk hal iconv isdnlog java jpeg kqemu ldap midi mmx mng mudflap ncurses nls nptl nptlonly nsplugin ntfs opengl openmp pam pch pcre perl png ppds pppd python quicktime readline reflection reiserfs sdl session spl ssl startup-notification tcpd unicode usb vorbis x86 xml xorg zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="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" APACHE2_MODULES="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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en uk" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-03 15:04:03 UTC
dhcpcd-4.0.2 is being stabilised for all arches right now. Does it solve your problem?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-03 15:04:54 UTC
That's bug #238731, btw.
Comment 3 David Williams 2008-10-07 08:41:37 UTC
Emerged the new dhcpcd and did the following

1) restarted the interface with nodns option and it leaves resolv.conf alone. OK

2) added dns_servers and restarted. It overwrites resolv.conf with dns_servers. OK

3) removed both options and restarted interface. It overwrites resolv.conf from dhcp. OK.