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>
On 08.12.2020 15:12, Jonathan Billings wrote:> 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.org > Looking 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. >wouldn't it be a good idea to split this, so that 'bind-utils' has no dependency of neither GeoIP nor geoipupdate, like it is in CentOS 6? (on systems where the bind-utils are used, mostly no GeoIP is used - DNS vs. Web) Thanks, Walter