|
|
如果需要geoip支持
1 N2 y* T0 c9 p/ A$ a9 _% V1 mwget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
# K( n" ~' K# M! ^5 P( w, [: ]) Gtar xzvf GeoIP.tar.gz
6 K" u0 Q' P3 J- F6 J4 L5 ^; d1 {cd GeoIP-1.4.8) _9 F+ ]3 H: [
./configure; h6 m# t' z) K) h; }
make&&make install& _- P9 \$ Y) H, `& U' o* A6 h9 R. K
3 F+ a; y6 Q' t+ f* c
安装openssl支持
' Z7 s" {5 t9 Z+ r5 t1 Myum install openssl-devel0 i: I$ a/ y. W, T
0 p! q4 R: Z* s$ \- o; I+ ~& u下载bing9.108 d# @, m& X, Y& T
wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
7 T. C' X% N$ Q/ Q解压bind9.10
$ t1 l! L* ?3 `; S# t5 z# [( ltar xzvf bind-9.10.3rc1.tar.gz
& j; D7 \, D2 k7 u" o& Z; i
8 @1 Z$ ~( `" O. h/ f' Y( x进入解压目录3 I" f5 t2 q6 s0 p- M
cd bind-9.10.3rc15 N9 Y6 T4 J5 o1 | T0 g
1 w" L2 z9 I0 C2 h3 x% A- |* r1 i$ o
配置测试& R! V3 @4 x' Q Q
./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip; A/ u: S# P/ P# a( d
O Q8 _+ I5 \; h& ^9 R
编译安装. _, e5 w7 x8 y0 V4 u
make&&make install* K6 b- ]/ W, ~: v2 F' o# ]
7 z( G2 }( Z' B) f. z" B! H以下安装openssl方法
4 s4 S% S0 ^9 D3 k" ~7 _wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
1 H) W' [2 O& n6 `% Y5 rtar xzvf openssl-fips-ecp-2.0.10.tar.gz, ~5 U/ i# M [9 k
cd openssl-fips-ecp-2.0.10
6 b+ w! z' |5 C; X% P4 I! ? I$ K./config --prefix=/usr/local --openssldir=/usr/local/ssl& l4 P, V$ L% N. |# p
make&&make install
. d; X6 U3 f( ^! Y i1 S9 @6 T, H; F% O+ }' K
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
" M7 @# O6 k& U
1 Q) j; ^% p Y9 c7 h& C编译含geoip的版本以失败告终!
* V; c' e) n9 ^ u% p9 ?7 j8 z# {- q# p' Z* T' f1 o
$ A+ y3 \& b, L% p4 S9 q) T- X3 G# s1 Q
4 ?2 n( E% P, n3 _6 M |
|