Date: Thu, 01 Oct 2009 07:03:17 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: David Southwell <david@vizion2000.net> Cc: freebsd-questions@freebsd.org, 'Frank Steinborn' <steinex@nognu.de> Subject: Re: How to restore Base_Bind on amd64 7.2 p3 Message-ID: <4AC44625.6010909@infracaninophile.co.uk> In-Reply-To: <6D413C54678B485E90645DF432C705E8@sleuth64> References: <4AC1E6EC.3080805@rumonitor.ru><DBBA37E4407A40CF9B0599BF6A10E315@sleuth64><20090929184641.GA17580@haydn.nognu.de> <1B6DC3865C3A46D0A1863A674C6CEAA4@sleuth64> <6D413C54678B485E90645DF432C705E8@sleuth64>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
David Southwell wrote:
>>> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Frank
>>> Steinborn
>>> You should be able to restore the bind from base by using the
>>> install.sh script in /usr/src/contrib/bind9. Deinstall the
>> port first,
>>> though.
>>>
>> ThanksI deinstalled the port and tried to run install-sh
>>
>> # sh install-sh
>> and got the response:
>>> install: no input file specified
>> Any chance you might make me a little wiser on how to use install-sh?\
This advice -- to run install-sh -- is incorrect. install-sh there
is straight from the bind distribution and assumes you're building it
as a separate piece of software, rather than integrated with the rest
of the system sources.
To reinstall bind from the FreeBSD source tree:
* Check /etc/src.conf, /etc/make.conf and ensure that there are no
WITHOUT_BIND or WITHOUT_BIND_NAMED or other relevant flags set
* Simplest thing to do is then run through a buildworld cycle. This
takes a while and uses some CPU power but it's largely fire-ans-forget.
Instructions are here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
* If you're really in a hurry, then you can rebuild just bind etc.
but this is less certain than the above. The following is extracted
from http://security.freebsd.org/advisories/FreeBSD-SA-09:12.bind.asc
# cd /usr/src/lib/bind
# make obj && make depend && make && make install
# cd /usr/src/usr.sbin/named
# make obj && make depend && make && make install
# /etc/rc.d/named restart
As the previous correspondent said, deinstall the port before doing this.
You should not need to recompile any other software because of this change
-- the shlibs generated should be interchangeable -- but you will need to
reboot to make sure that all the running processes are using the correct
version of the resolver functions rather than a memory mapped copy of the
old shlibs even after the actual file was deleted and overwritten.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAkrERisACgkQ8Mjk52CukIxR3gCfefUaPoV6DdzDOPFBB5hUMiDM
j/wAn16AVzEEcrcTulWC74V6d6/xnMH2
=zUE+
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AC44625.6010909>
