Skip site navigation (1)Skip section navigation (2)
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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig87A470F77991DB1E87CF124B
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

David Southwell wrote:

>>> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Frank=20
>>> Steinborn

>>> You should be able to restore the bind from base by using the=20
>>> install.sh script in /usr/src/contrib/bind9. Deinstall the=20
>> port first,=20
>>> though.
>>>
>> ThanksI deinstalled the port and tried to run install-sh=20
>>
>> # 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=20
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=20

    * 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-for=
get.
      Instructions are here:

          http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makew=
orld.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 extracte=
d
      from http://security.freebsd.org/advisories/FreeBSD-SA-09:12.bind.a=
sc

           # 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
=20
As the previous correspondent said, deinstall the port before doing this.=

You should not need to recompile any other software because of this chang=
e
-- 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

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enig87A470F77991DB1E87CF124B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----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-----

--------------enig87A470F77991DB1E87CF124B--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AC44625.6010909>