Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7872 - bind-9.2.2_rc1-r1.ebuild - ${FILESDIR}/localhost fixed.
Summary: bind-9.2.2_rc1-r1.ebuild - ${FILESDIR}/localhost fixed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-13 06:43 UTC by Maurizio Disimino
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments
fixed ${FILESDIR}/localhost file (localhost,412 bytes, text/plain)
2002-09-13 06:44 UTC, Maurizio Disimino
Details
fixed named.rc6 (named.rc6,1.28 KB, text/plain)
2002-09-13 14:08 UTC, Maurizio Disimino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maurizio Disimino 2002-09-13 06:43:54 UTC
In a previous submission, my 'localhost' file was overwritten by mistake.
That would prevent 'localhost' to be resolved in 127.0.0.1
Apologies for the mistake.

Maurizio
Comment 1 Maurizio Disimino 2002-09-13 06:44:26 UTC
Created attachment 3889 [details]
fixed ${FILESDIR}/localhost file
Comment 2 Maurizio Disimino 2002-09-13 14:08:26 UTC
Created attachment 3895 [details]
fixed named.rc6

NB. This is a trivial problem that cames from previous releases of named.rc6.
I've just noticed and fixed it.

in checkconfig()
OPTIONS get redefined to add the CHROOT stuff to the OPTIONS already
setted in /etc/conf.d/named

when the restart() is executed. (i.e. stop() and start() ),
OPTIONS is already defined and will result in a duplicate.

example

sexybit Desktop # /etc/init.d/named restart
 * Stopping named...	  [ ok ]
 * Starting chrooted named...	[ ok ]

sexybit Desktop # ps ax | grep named
 6222 ?        S      0:00 /usr/sbin/named -u named -n 1 -t /chroot/dns -t
/chroot/dns
 6225 ?        S      0:00 /usr/sbin/named -u named -n 1 -t /chroot/dns -t
/chroot/dns

the new named.rc6 version doesn't use OPTIONS in checkconfig()
and the start() has a redefined start command:

start-stop-daemon --start --quiet --exec /usr/sbin/named -- -u named \
-n $CPU $OPTIONS ${CHROOT:+-t $CHROOT}

Maurizio
Comment 3 Maurizio Disimino 2002-09-18 08:50:47 UTC
seemant, I've reassigned this bug to you since Ben told me he's quite
busy with his work atm and these two files need to be submitted
as soon as possible or we'll get new BIND user claiming their nameserver
do not resolve 'hostname' into the loopback address.

Thanks :) 

Maurizio