Error when using GeoIP

Jeremy C. Reed jreed at isc.org
Tue Jul 1 18:33:59 UTC 2014


> geoip-directory "/usr/share/GeoIP/GeoIP.dat";

Should be a directory.

> 
> 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";
> 
> 
> };
> 
> 
> 
> Once I add the match-clients line it throws the error  below on starting :
> 
> /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 ?

Look at logs please. Do you have an "initializing GeoIP Country" line?

Like:
30-Apr-2014 22:11:17.908 initializing GeoIP Country (IPv4) (type 1) DB

Double-check that /usr/share/GeoIP/ is correct and that you have the 
correct database(s) there.


More information about the bind-users mailing list