IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

Chroot-BIND8 HOWTO

Search Howtos :Match :
Next Previous Contents

3. Compiling BIND

You should be able to find the BIND source by visiting http://www.isc.org/bind.html. You need the bind-src.tar.gz package. Be sure to get the latest version!

3.1 Modifying Paths

Things can get a bit confusing at this point, because different parts of the BIND package will be referring to the same directories by different names (depending on whether or not they're running inside the jail). I'll try not to confuse you too much :-).

The main directory that we have to worry about here is /var/run, because its contents are required for both the main named daemon (inside the jail), and the ndc utility (on the outside). We'll start by setting everything up to find this directory from the outside world. To do this, we need to modify src/port/linux/Makefile.set (substitute your port's directory if you're not running Linux), and change the line

DESTRUN=/var/run
to
DESTRUN=/chroot/named/var/run
While you're in there, you may want to change the other destination paths from /usr to /usr/local.

Now everything should be able to find that directory... except the named daemon itself, to which it's still just /var/run inside the jail. We can get around this by making a small change in the named source. In the file src/bin/named/named.h, find the line

#include "pathnames.h"
and add the following line immediately after it
#define _PATH_NDCSOCK    "/var/run/ndc"
This way, named will ignore our definition of DESTRUN over in Makefile.set and use the correct location (from its perspective in the chroot jail). You will notice some warnings about redefinitions of _PATH_NDCSOCK when you do the build; just ignore them.

3.2 Doing the Build

You should now be able to compile BIND as normal, following the instructions in the INSTALL file. At this stage, we only want to compile BIND, not install it. Don't go too far when following the INSTALL file. Essentially, it's just make clean, make depend, and make.


Next Previous Contents
Search Howtos :Match :
Linux Kernel 2.6 2.6.27.7
Linux Kernel
Battle for Wesnoth 1.4.6
Fantasy Turn-Based Strategy Game
DeleGate 9.9.0-pre8
Proxy server which runs on multiple platforms
Safesquid proxy server 4.2.2.RC8.14B
Antivirus and content filtering proxy server
Thunderbird 2.0.0.18
An email and newsgroup client with powerful, new junk mail controls
JEdit 4.3pre16
Programmers text editor
Wine 1.1.9
Free implementation of Windows on Unix
WebGUI 7.5.34
A fully featured content management system.
KOffice 2.0 beta3
Integrated office suite for KDE
LimeWire 4.18.8
Gnutella Client
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

eWeek

The essential technology information source for builders of e-business.

BusinessWeek (Digital Edition)

Provides readers a deeper understanding of the trends that drive growth, and what best practices keep them ahead of the competition.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info