Bug 1374346 - no GeoIP database installed which can answer queries of type 'city'
Summary: no GeoIP database installed which can answer queries of type 'city'
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: bind
Version: 7.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Petr Menšík
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 13:20 UTC by Petr Sklenar
Modified: 2020-06-04 21:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-04 21:21:18 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Petr Sklenar 2016-09-08 13:20:02 UTC
Description of problem:
Options geoip city needs package GeoIP-data which is in optional channel.

if you follow bind knowledge base :
https://kb.isc.org/article/AA-01149/0/Using-the-GeoIP-Features-in-BIND-9.10.html
you would see all the options used.

There is strange location for this database with cities.


Version-Release number of selected component (if applicable):
bind-9.9.4-36.el7.x86_64
GeoIP-data-1.5.0-11.el7.noarch


How reproducible:
always

Steps to Reproduce:
1. have a bind + package GeoIP
2. 
use following options:

geoip-directory "/usr/share/GeoIP";
+
acl "US" {
  geoip country US;
  geoip region CA;
  geoip city A;
};

3. it fails with error message:
/etc/named.conf:56: no GeoIP database installed which can answer queries of type 'city'

4. look at files:

[0 root@qeos-103 ~]# rpm -ql GeoIP|grep -i city
/usr/share/GeoIP/GeoIPCity.dat
/usr/share/GeoIP/GeoIPCityv6.dat
/usr/share/doc/GeoIP-1.5.0/fetch-geoipdata-city.pl

#######
####### which is strange ^, for the first view I would say that I have DB with cities.
#######

5. but I haven't db with cities:
[0 root@qeos-103 ~]# ls -la /usr/share/GeoIP/GeoIPCity.dat
ls: cannot access /usr/share/GeoIP/GeoIPCity.dat: No such file or directory


6. yum install GeoIP-data -y

7. ls -la /usr/share/GeoIP/GeoIPCity.dat
lrwxrwxrwx. 1 root root 38 Sep  8 09:06 /usr/share/GeoIP/GeoIPCity.dat -> /usr/share/GeoIP/GeoIPCity-initial.dat

8. Now option 'geoip city' works fine


Actual results:
users can be messed:
A, Options 'geoip country' + 'region' works with base package GeoIP but for 'city' you need GeoIP-data.
B, Package GeoIP shows(rpm -ql) /usr/share/GeoIP/GeoIPCity.dat which is not on the disk.

Expected results:
document it or move GeoIP-data into base channel.

Additional info:

Comment 4 Petr Menšík 2020-01-07 16:26:21 UTC
Requirement for GeoIPCity, GeoIPCityv6, GeoIPASNum and GeoIPASNumv6 requires GeoIP-data package installed. There are symlinks pointing to non-existing file until GeoIP-data is installed.

There is already well documented enabling of optional channel [1], but details about named configuration to choose correct database are not yet documented. When any ACL would contain geoip city XY or geoip asnum XY, option channel GeoIP-data has to be installed. Otherwise, basic usage is documented by ISC KB [2].

1. https://access.redhat.com/solutions/392003
2. https://kb.isc.org/docs/aa-01149

Comment 8 Petr Menšík 2020-06-04 21:21:18 UTC
Original GeoIP article[1] was updated was updated to include option channel on RHEL7.

Separate article was created for RHEL8[2], not yet published. But not directly related to this bug. Closing this bug, no code changed would be done.

1. https://access.redhat.com/solutions/3307231
2. https://access.redhat.com/articles/5127051


Note You need to log in before you can comment on or make changes to this bug.