geoip-directory "/usr/share/GeoIP/GeoIP.dat";
in zones
acl "US" {
geoip country US;
};
view "US" {
match-clients { US; }; //Once I add this it throws the error below *******
include "/etc/named.rfc1912.zones";
include "/etc/dk.sites.list";
};
/etc/named.conf:47: no GeoIP database installed which can answer queries of type 'country'
geoiplookup ip.ip.ip.ip works, so I doubt that is the issue, I did try geoip-directory "/usr/share/GeoIP"; instead of full path but that did not make any difference.
Any hints ?
[root@uk etc]# ls -lart /usr/share/GeoIP/
-rw-r--r-- 1 root root 1206078 Jul 1 10:08 GeoIP.dat
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
Jul 1 14:38:56 uk named[1795]: GeoIP Country (IPv6) (type 12) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP City (IPv4) (type 2) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP City (IPv4) (type 6) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP City (IPv6) (type 30) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP City (IPv6) (type 31) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP Region (type 3) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP Region (type 7) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP ISP (type 4) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP Org (type 5) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP AS (type 9) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP Domain (type 11) DB not available
Jul 1 14:38:56 uk named[1795]: GeoIP NetSpeed (type 10) DB not available
[root@uk ~]# geoiplookup ip.ip.ip.ip
GeoIP Country Edition: US, United States
A bummer though, as I have purchased the Maxmind Country edition.
When I did try to install GeoLiteCity.dat I got the error below
file /usr/share/GeoIP/GeoIP.dat from install of geoip-geolite-2013.04-1.el6.noarch conflicts with file from package GeoIP-1.4.8-1.el6.x86_64
Is geoip-geolite not provided by maxmind ?
Regards
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