This is my setting in /etc/conf.d/net config_wlan0="dhcp" modules="wpa_supplicant" dhcp_wlan0="release nodns nontp" # Only get an address dns_servers_wlan0="127.0.0.1" # local resolution via dnsmasq Versions: net-misc/dhcpcd-5.5.4 sys-apps/openrc-0.9.9.3 sys-apps/baselayout-2.1 OpenRC briefly sets the defined dns-server - but then it gets overwritten by dhcpcd again. Setting "nooption domain_name_servers" in /etc/dhcpcd.conf doesn't help; nameserver entries from /etc/resolv.conf are removed altogether. Setting "nohook resolv.conf" works, though. Reproducible: Always Expected Results: I just want *my* DNS server to do the resolving. dhcpcd should leave its dirty fingers out of that.
Please show us the output of: 1. emerge --info 2. /etc/init.d/net.wlan0 --verbose restart I'm wondering if wpa_supplicant is calling dhcpcd directly.
This is the output of /etc/init.d/net.wlan0 --verbose restart * Caching service dependencies ... [ ok ] * Stopping Tor ... * Will stop /usr/bin/tor * Will stop PID in pidfile `/var/run/tor/tor.pid' * Will stop processes of `/usr/bin/tor --PidFile /var/run/tor/tor.pid' * Sending signal 15 to PID 14849 ... [ ok ] * Use of the opts variable is deprecated and will be * removed in the future. * Please use extra_commands, extra_started_commands or extra_stopped_commands. * Stopping sshd ... /usr/sbin/sshd' [ ok ] * Stopping firewall ... [ ok ] * Stopping privoxy ... [ ok ] * Unmounting network filesystems ... [ ok ] * Stopping I2P ... Stopping I2P Service... Stopped I2P Service. [ ok ] * Stopping hddtemp daemon ... /usr/sbin/hddtemp' [ ok ] * Bringing down interface wlan0 * Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start * Skipping module bridge due to missing program: brctl * Skipping module clip due to missing program: /usr/sbin/atmsigd * Skipping module ethtool due to missing program: ethtool * Skipping module pump due to missing program: /sbin/pump * Loaded modules: ip6to4 dhcpcd udhcpc dhclient vlan system pppd iproute2 ifconfig ssidnet wpa_supplicant iwconfig ipppd ifplugd netplugd macnet macchanger macvlan ccwgroup tuntap br2684ctl bonding arping apipa * Stopping dhcpcd on wlan0 ... [ ok ] * Stopping wpa_cli on wlan0 ... * Will stop /usr/bin/wpa_cli * Will stop PID in pidfile `/var/run/wpa_cli-wlan0.pid' * Will stop processes of `/usr/bin/wpa_cli' * Sending signal 15 to PID 2326 ... [ ok ] * Stopping wpa_supplicant on wlan0 ... * Will stop /usr/sbin/wpa_supplicant * Will stop PID in pidfile `/var/run/wpa_supplicant-wlan0.pid' * Will stop processes of `/usr/sbin/wpa_supplicant' * Sending signal 15 to PID 2319 ... [ ok ] * Bringing up interface wlan0 * Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start * Skipping module br2684ctl due to missing program: br2684ctl * Skipping module bridge due to missing program: brctl * Skipping module clip due to missing program: /usr/sbin/atmsigd * Skipping module ethtool due to missing program: ethtool * Skipping module netplugd due to missing program: /sbin/netplugd * Skipping module ifplugd due to missing program: /usr/sbin/ifplugd * Skipping module ipppd due to missing program: /usr/sbin/ipppd * Skipping module dhclient due to missing program: /sbin/dhclient * Skipping module pump due to missing program: /sbin/pump * Loaded modules: apipa arping bonding tuntap ccwgroup macvlan macchanger macnet wpa_supplicant ssidnet iproute2 pppd system vlan dhcpcd ip6to4 * Configuring wlan0 for MAC address 00:1C:BF:91:FC:F3 ... [ ok ] * Starting wpa_supplicant on wlan0 ... * Detaching to start `/usr/sbin/wpa_supplicant' ... [ ok ] * Starting wpa_cli on wlan0 ... * Detaching to start `/usr/bin/wpa_cli' ... [ ok ] * Backgrounding ... ... * WARNING: net.wlan0 has started, but is inactive * WARNING: privoxy is scheduled to started when net.wlan0 has started * WARNING: tor is scheduled to started when net.wlan0 has started * WARNING: shorewall is scheduled to started when net.wlan0 has started * WARNING: i2p is scheduled to started when net.wlan0 has started * WARNING: sshd is scheduled to started when net.wlan0 has started * WARNING: netmount is scheduled to started when net.wlan0 has started * WARNING: hddtemp is scheduled to started when net.wlan0 has started
emerge --info Portage 2.2.0_alpha95 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 x86_64) ================================================================= System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5450_@_1.66GHz-with-gentoo-2.1 Timestamp of tree: Tue, 27 Mar 2012 16:00:01 +0000 ccache version 3.1.6 [enabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.1.4-r3, 3.2.2 dev-util/ccache: 3.1.6 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.3 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo science games gamerlay-stable zugaina local Installed sets: @myset-fonts, @myset-gmpc, @myset-johntheripper, @myset-slim, @myset-xmonad, @system ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=6 --load-average=3" FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg" FFLAGS="" GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://gentoo.supp.name/" LANG="de" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en sv fr ru" MAKEOPTS="-j3 --load-average=3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--delete-after" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/games /usr/portage/local/layman/gamerlay /usr/portage/local/layman/zugaina /usr/portage/local/mine" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib accessibility acl acpi alsa amd64 amr aotuv apng archive bash-completion berkdb blksha1 bluray boost branding bzip2 cairo cdda cddax cdr cleartype cli cracklib crypt css cups curl cxx dbus dcc_video dcc_voice device-mapper dga dia disk-partition djvu dri dvd dvdr enca encode exif fam fat ffmpeg flac fontconfig foomaticdb fortran frei0r ftp fuse gallium gd gdbm geoip gif gimp git glitz gnutls gphoto2 gpm graphite gre gs gstreamer gtk hddtemp helpers hpn iconv icu id3tag idn inkjar iostats ipv6 iso14755 jabber jadetex java java6 javascript jingle jpeg jpeg2k kpathsea ladspa laptop latex lcms libass libcaca libnotify libv4l2 live lm_sensors lock lyrics lzma lzo mad matroska mime mjpeg mmap mmx mmxext mng modules mp2 mp3 mp4 mpeg mplayer msn mudflap multilib music ncurses network nls nodrm nptl nptlonly nsplugin ntfs ntp ocr octave offensive ogg opengl openmp otr pam pcre pdf png postscript ppds pppd python qt4 quicktime rar readline reiser4 reiserfs rss rtc samba schroedinger sdl secure-delete session skins skype smp sound speex sse sse2 ssl startup-notification stk subtitles subversion svg symlink sysfs system-sqlite t1lib tcpd templates theora threads thunar tidy tiff trayicon truetype twolame udev unicode unlock-notify upnp usb v4l2 vcd video videos vim-pager vim-syntax vim-with-x vorbis vst wcwidth weather-metar weather-xoap webkit wifi winpopup wma wps wxwidgets x264 xanim xcb xcomposite xfce xfs xft xhtml xinerama xml xorg xosd xpm xscreensaver xv xvid xvmc yahoo zip zlib" ALSA_CARDS="ca0106" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en sv fr ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Any particular reason why you are using the 'release' option for dhcp_wlan0 ? By default dhcpcd will receive SIGTERM on stop and then be restarted after wpa_supplicant establishes an authenticated connection. With dhcp_wlan0="release", SIGHUP is used instead which most likely means dhcpcd isn't terminated. This may relate to the issue (of course I can't be sure as I can't test at the moment); could you try again with openrc-0.11.8 or netifrc-0.1 , without 'release' set? And also see if this issue still applies with dhcpcd-5.6.4 (current stable) or above?
Please reopen with the requested info if you are still seeing this issue on current stable dhcpcd / netifrc.