On 08.12.2020 14:44, Jonathan Billings wrote:> On Tue, Dec 08, 2020 at 02:33:01PM +0100, Walter H. wrote: >> can someone explain, why the two packages >> -? GeoIP >> -? geoipupdate >> are needed when installing the bind-utils package? > The bind-utils package requires 'libGeoIP.so.1()(64bit)', which is > provided by the GeoIP package. The GeoIP package requires > 'geoipupdate', which is provided by the geoipupdate package. > > % rpm -q --requires bind-utils|grep GeoIP > libGeoIP.so.1()(64bit) > % rpm -q --requires GeoIP | grep geoipupdate > geoipupdate > > GeoIP provides a C library and a lookup tool to look up countries from > an IP address. The bind-utils executables are all linked against > libGeoIP.so.1, so I assume they use some functionality from that > library. > > /usr/bin/geoipupdate is a tool to update the data files in the GeoIP > package. >Yes, then the interesting question, how can I make use of these GeoIP-features when doing these e.g. nslookup??? 200:470:17:55::1 nslookup??? 222.10.10.1 nslookup?? www.centos.org host???? www.centos.org Thanks, Walter
Jonathan Billings
2020-Dec-08 14:12 UTC
[CentOS] strange RPM dependency observed in CentOS 7
On Tue, Dec 08, 2020 at 02:54:03PM +0100, Walter H. wrote:> Yes, then the interesting question, how can I make use of these > GeoIP-features when > doing these e.g. > > nslookup??? 200:470:17:55::1 > nslookup??? 222.10.10.1 > nslookup?? www.centos.org > host???? www.centos.orgLooking at the source, it looks like the geoip-related functions are only called in the 'named' code and the libdns library. I don't see any features in dig, host or nslookup for looking up countries based on IP. However, the GeoIP package has a 'geoiplookup' command that looks up a country from an IP. -- Jonathan Billings <billings at negate.org>