Hi Jeremy Thanks for chipping in. Usual as ever. So I did actually use geoip-directory "/usr/share/GeoIP";
and ls of that dir is [root@uk etc]# ls -lart /usr/share/GeoIP/ -rw-r--r-- 1 root root 1206078 Jul 1 10:08 GeoIP.dat 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 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 On Tue, Jul 1, 2014 at 8:33 PM, Jeremy C. Reed <jr...@isc.org> wrote: > > 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.
_______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users