<div dir="ltr">Hi Mukund<div>This is the paid version of the DB, tailing that file states </div><div><br></div><div>GEO-106 20140624 Build 1 Copyright (c) 2014 MaxMind Inc All Rights Reserved</div><div><br></div><div>As said it does work with the geoiplookup tool. </div>
<div><br></div><div>seLinux is disabled and permissions for files are default on a fresh system..see below for GeoIP dir under /usr/share</div><div><br></div><div>
<p class="">drwxr-xr-x 2 root root 4096 Jul 1 10:11 <span class="">GeoIP</span></p><p class=""><br></p><p class=""><br></p><p class="">BUT !!!!</p><p class="">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</p>
<p class=""><br></p><p class="">So putting the GeoIP.dat file there actually worked !!</p><p class="">Now I only have to edit the cronjob to copy the updated GeoIP.dat file to the chroot when Maxmind updates.</p><p class="">
Thanks !</p><p class=""><br></p><p class="">Regards</p></div><div><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 1, 2014 at 9:16 PM, Mukund Sivaraman <span dir="ltr"><<a href="mailto:muks@isc.org" target="_blank">muks@isc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ali<br>
<div class=""><br>
On Tue, Jul 01, 2014 at 08:41:32PM +0200, Ali Jawad wrote:<br>
> [root@uk etc]# ls -lart /usr/share/GeoIP/<br>
><br>
> -rw-r--r-- 1 root root 1206078 Jul 1 10:08 GeoIP.dat<br>
<br>
</div>Though this is not the problem causing the failure:<br>
<br>
This filesize looks too large for it to be the current country database<br>
GeoIP.dat (~600KB) and too small to be the current city database<br>
GeoLiteCity.dat (~17MB). Please check if this database is correct.<br>
<div class=""><br>
> The output from the logs is<br>
><br>
> Jul 1 14:38:56 uk named[1795]: using "/usr/share/GeoIP" as GeoIP directory<br>
><br>
> Jul 1 14:38:56 uk named[1795]: GeoIP Country (IPv4) (type 1) DB not<br>
> available<br>
<br>
</div>This codepath reporting this error does a stat() call inside the GeoIP<br>
library to check if the corresponding file exists. The named process<br>
would need permission to access this directory. Check the permissions on<br>
/usr/share/GeoIP/, etc.<br>
<span class="HOEnZb"><font color="#888888"><br>
Mukund<br>
</font></span></blockquote></div><br></div>