Difference between revisions of "BIND"

From CBLFS
Jump to navigationJump to search
(BootScript)
Line 69: Line 69:
 
  ln -sfv multiarch_wrapper /usr/bin/isc-config.sh
 
  ln -sfv multiarch_wrapper /usr/bin/isc-config.sh
  
== Named User/Group ==
+
== Configuring Bind ==
 +
 
 +
=== Named User/Group ===
  
 
  groupadd -g 52 named &&
 
  groupadd -g 52 named &&
 
  useradd -c 'BIND User' -d /srv/named -g named -s /bin/false -u 52 named
 
  useradd -c 'BIND User' -d /srv/named -g named -s /bin/false -u 52 named
  
== BootScript ==
+
=== BootScript ===
  
 
Install the init script included in the [[bootscripts]] package.
 
Install the init script included in the [[bootscripts]] package.
Line 80: Line 82:
 
  make install-bind
 
  make install-bind
  
== Basic structure for the chroot environment ==
+
=== Basic structure for the chroot environment ===
  
 
  install -dv /srv/named/{dev,etc/namedb/{pz,slave},var/run} &&
 
  install -dv /srv/named/{dev,etc/namedb/{pz,slave},var/run} &&
Line 88: Line 90:
 
  cp -L /etc/localtime /srv/named/etc/localtime
 
  cp -L /etc/localtime /srv/named/etc/localtime
  
== Configuration ==
+
=== Configuration ===
  
 
Time premiting, the configuration for bind will be put here. For the time being, the following link cam be used to set up a simple lookup nameserver.
 
Time premiting, the configuration for bind will be put here. For the time being, the following link cam be used to set up a simple lookup nameserver.

Revision as of 16:22, 8 January 2010

Download Source: http://ftp.isc.org/isc/bind9/9.6.1-P2/bind-9.6.1-P2.tar.gz
Alternate Download Source: http://gd.tuwien.ac.at/infosys/servers/isc/bind/9.6.1-P2/bind-9.6.1-P2.tar.gz

Introduction to BIND

BIND (Berkeley Internet Name Domain) is an implementation of the DNS protocols and provides an openly redistributable reference implementation of the major components of the Domain Name System.

Project Homepage: http://www.bind9.net/

Dependencies

Optional

  • OpenSSL (Recommended for secure environments)

Non-Multilib

Compile the package:

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-threads --with-libtool &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-threads \
     --with-libtool &&
make

Install the package

make install &&
mv -v /usr/bin/isc-config.sh{,-32}

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 --sysconfdir=/etc --localstatedir=/var \
     --enable-threads --with-libtool &&
make

Install the package

make install &&
mv -v /usr/bin/isc-config.sh{,-n32}

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var \
    --enable-threads --with-libtool &&
make

Install the package

make install &&
mv -v /usr/bin/isc-config.sh{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/isc-config.sh

Configuring Bind

Named User/Group

groupadd -g 52 named &&
useradd -c 'BIND User' -d /srv/named -g named -s /bin/false -u 52 named

BootScript

Install the init script included in the bootscripts package.

make install-bind

Basic structure for the chroot environment

install -dv /srv/named/{dev,etc/namedb/{pz,slave},var/run} &&
mknod -m666 /srv/named/dev/null c 1 3 &&
mknod -m666 /srv/named/dev/zero c 1 5 &&
mknod -m666 /srv/named/dev/random c 1 8 &&
cp -L /etc/localtime /srv/named/etc/localtime

Configuration

Time premiting, the configuration for bind will be put here. For the time being, the following link cam be used to set up a simple lookup nameserver.

http://www.unixwiz.net/techtips/bind9-chroot.html
Retrieved from "?title=BIND&oldid=19819"