DNS服务器架设1(安装)

 

DNS是domain name system缩写,主要用作域名的解析的,服务器软件我用的是BIND9
安装过程:
[root@server2 dns]# tar zxvf bind-9.3.2-P1.tar.gz
[root@server2 dns]# cd bind-9.3.2-P1
[root@server2 bind-9.3.2-P1]# ./configure --prefix=/usr/local/named
[root@server2 bind-9.3.2-P1]# make
[root@server2 bind-9.3.2-P1]# make install
[root@server2 bind-9.3.2-P1]# make clean
安装过程中有一些可以控制的部分:
[root@server2 bind-9.3.2-P1]# ./configure --help | more
`configure' configures this package to adapt to many kinds of systems.
 
Usage: ./configure [OPTION]... [VAR=VALUE]...
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
 
Defaults for the options are specified in brackets.
 
Configuration:
 -h, --help               display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
 -V, --version            display version information and exit
 -q, --quiet, --silent    do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
 -C, --config-cache       alias for `--cache-file=config.cache'
 -n, --no-create          do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']
 
Installation directories:
 --prefix=PREFIX          install architecture-independent files in PREFIX
                          [/usr/local]
 --exec-prefix=EPREFIX    install architecture-dependent files in EPREFIX
                          [PREFIX]
 
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
 
For better control, use the options below.
 
Fine tuning of the installation directories:
 --bindir=DIR           user executables [EPREFIX/bin]
 --sbindir=DIR           system admin executables [EPREFIX/sbin]
 --libexecdir=DIR        program executables [EPREFIX/libexec]
 --datadir=DIR           read-only architecture-independent data [PREFIX/share]
 --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 --libdir=DIR            object code libraries [EPREFIX/lib]
 --includedir=DIR        C header files [PREFIX/include]
 --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 --infodir=DIR           info documentation [PREFIX/info]
 --mandir=DIR            man documentation [PREFIX/man]
 
System types:
 --build=BUILD      configure for building on BUILD [guessed]
 --host=HOST        cross-compile to build programs to run on HOST [BUILD]
 
Optional Features:
 --disable-FEATURE        do not include FEATURE (same as --enable-FEATURE=no)
 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
 --enable-threads       enable multithreading
 --enable-largefile       64-bit file support
 --enable-shared[=PKGS]
                          build shared libraries [default=yes]
 --enable-static[=PKGS]
                          build static libraries [default=yes]
 --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
 --disable-libtool-lock avoid locking (might break parallel builds)
 --enable-libbind               build libbind default=no
 --enable-ipv6          use IPv6 default=autodetect
 --enable-getifaddrs     Enable the use of getifaddrs() [yes|no|glibc].
             glibc: Use getifaddrs() in glibc if you know it supports IPv6.
 --disable-linux-caps disable linux capabilities
 
Optional Packages:
 --with-PACKAGE[=ARG]     use PACKAGE [ARG=yes]
 --without-PACKAGE        do not use PACKAGE (same as --with-PACKAGE=no)
 --with-openssl=PATH    Build with OpenSSL yes|no|path.
                          (Required for DNSSEC)
 --with-randomdev=PATH Specify path for random device
 --with-ptl2            on NetBSD, use the ptl2 thread library (experimental)
 --with-purify=PATH     use Rational purify
 --with-libtool         use GNU libtool (following indented options supported)
 --with-gnu-ld            assume the C compiler uses GNU ld [default=no]
 --with-pic               try to use only PIC/non-PIC objects [default=use
                          both]
 --with-tags[=TAGS]
                         include additional configurations [automatic]
 --with-kame=PATH       use Kame IPv6 default path /usr/local/v6
 
Some influential environment variables:
 CC           C compiler command
 CFLAGS       C compiler flags
 LDFLAGS      linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
 CPPFLAGS     C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
 CPP          C preprocessor
 CXX          C++ compiler command
 CXXFLAGS     C++ compiler flags
 CXXCPP       C++ preprocessor
 F77          Fortran 77 compiler command
 FFLAGS       Fortran 77 compiler flags
 
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值