Error when using GeoIP
Ali Jawad
alijawad1 at gmail.com
Tue Jul 1 19:24:38 UTC 2014
Hi Mukund
This is the paid version of the DB, tailing that file states
GEO-106 20140624 Build 1 Copyright (c) 2014 MaxMind Inc All Rights Reserved
As said it does work with the geoiplookup tool.
seLinux is disabled and permissions for files are default on a fresh
system..see below for GeoIP dir under /usr/share
drwxr-xr-x 2 root root 4096 Jul 1 10:11 GeoIP
BUT !!!!
You sent me the right direction, I am chrooting my named server, so
naturally the location bind is looking is /var/named/chroot/usr/share/GeoIP
not /usr/share/GeoIP
So putting the GeoIP.dat file there actually worked !!
Now I only have to edit the cronjob to copy the updated GeoIP.dat file to
the chroot when Maxmind updates.
Thanks !
Regards
On Tue, Jul 1, 2014 at 9:16 PM, Mukund Sivaraman <muks at isc.org> wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20140701/2c2f2a99/attachment.html>
More information about the bind-users
mailing list