Error when using GeoIP

Mukund Sivaraman muks at isc.org
Tue Jul 1 19:16:59 UTC 2014


Hi Ali

On Tue, Jul 01, 2014 at 08:41:32PM +0200, Ali Jawad wrote:
> [root at uk etc]# ls -lart /usr/share/GeoIP/
> 
> -rw-r--r--   1 root root 1206078 Jul  1 10:08 GeoIP.dat

Though this is not the problem causing the failure:

This filesize looks too large for it to be the current country database
GeoIP.dat (~600KB) and too small to be the current city database
GeoLiteCity.dat (~17MB). Please check if this database is correct.

> The output from the logs is
> 
> Jul  1 14:38:56 uk named[1795]: using "/usr/share/GeoIP" as GeoIP directory
> 
> Jul  1 14:38:56 uk named[1795]: GeoIP Country (IPv4) (type 1) DB not
> available

This codepath reporting this error does a stat() call inside the GeoIP
library to check if the corresponding file exists. The named process
would need permission to access this directory. Check the permissions on
/usr/share/GeoIP/, etc.

		Mukund


More information about the bind-users mailing list