Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104870 - /etc/resolv.conf doesn't retain options rotate
Summary: /etc/resolv.conf doesn't retain options rotate
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-09-05 02:04 UTC by Clock
Modified: 2005-10-11 08:20 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 Clock 2005-09-05 02:04:37 UTC
I wanted to have options rotate in /etc/resolv.conf. So I wrote it there.
This is described also here:
http://www.gentoo.org/news/en/gwn/20040202-newsletter.xml
However when I reboot the system, it disappears. I understand this as I am using
DHCP, but if gentoo doesn't save the options and replant them after DHCP, there
should be some way to set them in /etc/conf.d/net. I didn't find anything like
/etc/conf.d/dhcp or /etc/conf.d/resolver. But /etc/conf.d/net internal comments
doesn't talk about any possibility like that. Man page for /etc/conf.d/net
doesn't exist and man page for net is about something from Samba.

I suggest that a capability to have options rotate in /etc/resolv.conf together
with DHCP were added into gentoo.

Reproducible: Always
Steps to Reproduce:
1. Put options rotate into /etc/resolv.conf
2. Reboot
3. cat /etc/resolv.conf | grep rotate

Actual Results:  
Empty output

Expected Results:  
print "options rotate"

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.50GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl
dga divx4linux dri dv dvd dvdread eds emboss encode esd exif fam ffmpeg fftw
flac flash foomatic foomaticdb fortran ftp gd gdbm gif glut gnome gpm gstreamer
gtk gtk2 guile icq imagemagick imap imlib ipv6 jabber jack java javascript jpeg
kde ldap libcaca libg++ libwww live matroska mikmod ming mmap mmx mng motif
mozilla mp3 mpeg mysql nas ncurses nls ogg oggvorbis opengl oss pam pdflib perl
php png python qt quicktime readline real ruby samba sdl sharedmem shorten slang
socks5 speex spell sse ssl svg svga tcltk tcpd tetex theora threads tiff tls
truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs wmf xine
xinerama xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-09-05 15:41:00 UTC
dns_options_eth0=( "timeout 1" "rotate" )
dns_sortlist_eth0="128.32.42.0/255.255.255.0"

The above variables do not work using the dhcpcd or pump DHCP clients, but do
using udhcpc or dhclient

Will be in baselayout-1.12.0_pre9
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-09-06 03:48:55 UTC
dhcpcd and pump now support those options too, however the options and sortlist
will get clobbered if you run more than one interface. I'll see if I can fix
that before pre9 goes out.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-09-07 04:46:02 UTC
pre9 will merge options and sortlist from other interfaces :)
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-10-11 08:20:51 UTC
Fixed in pre9