Čia matote skirtumus tarp pasirinktos versijos ir esamo dokumento.
Next revision | Previous revision | ||
bind [2011/05/05 11:13] dalius created |
bind [2014/08/05 13:46] (esamas) |
||
---|---|---|---|
Linija 1: | Linija 1: | ||
+ | ==== BIND upgradinimas ir GeoIP ==== | ||
+ | |||
+ | * Parsisiunti tarball is [[http://ftp.isc.org/isc/bind9/9.8.0-P1/bind-9.8.0-P1.tar.gz|ISC]] | ||
+ | * Parsisiusti geoip patch is [[http://code.google.com/p/bind-geoip/downloads/list|Cia]] | ||
+ | <code> | ||
+ | After unpacking the BIND distribution, cd into the untarred directory and run: | ||
+ | |||
+ | patch -p0 -b < /path/to/this/patch/bind-geoip-1.3.patch | ||
+ | This will apply the required patches. You can ignore any conflict on version, but we recommend you change the RELEASEVER string to denote a patched version. | ||
+ | |||
+ | autoconf | ||
+ | (NOTE: patching configure is much less portable than configure.in. If you do not have access to autoconf, please let us know and we may provide patches against configure.) | ||
+ | |||
+ | To add GeoIP support when running configure, there are two key options: | ||
+ | |||
+ | --with-geoip | ||
+ | This enables support for GeoIP functionality. It looks for GeoIP in standard locations, and will automatically detect if IPv6 support is available. | ||
+ | |||
+ | You can also specify a path to the location of your GeoIP install (within which should exist "lib", "include", and "share" directories): | ||
+ | |||
+ | --with-geoip=/usr/local | ||
+ | Please note that the GeoIP library expects a certain naming scheme for the database files. For example, the City database is expected to be named "GeoIPCity". See the MaxMind site for more details; particularly here and here. | ||
+ | |||
+ | To enable debug output, use: | ||
+ | |||
+ | --with-geoip-debug | ||
+ | Starting named with -d3 or higher will provide logging for all attempted GeoIP matching. Adding these debug logging calls is theoretically a performance hit, but even in heavy production, CPU usage does not change in any perceivable way. Enabling this is recommended to debug unexpected behavior. | ||
+ | </code> | ||
+ | * MaxMind geoIP C library is [[http://geolite.maxmind.com/download/geoip/api/c/|Cia]] | ||
+ | <code> | ||
+ | ./configure | ||
+ | make | ||
+ | make check | ||
+ | make install | ||
+ | </code> | ||
+ | * Naujausia geoIP [[http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz|duombaze]] | ||
+ | * Padeti faila i '/usr/local/share/GeoIP' | ||
+ | * patch -p0 -b < /path/to/this/patch/bind-geoip-1.3.patch bindo source dire | ||
+ | * ./configure --with-geoip=/usr/local | ||
+ | * make | ||
+ | * make install | ||
+ | * pakeisti kelius /etc/rc.d/rc.bind/ i /usr/local is /usr | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
[[bind_geoip|]] | [[bind_geoip|]] |