Package: libgeoip1
Version: 1.6.12-8
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Our Internet provider assigned us address 185.202.110.161. The following
minimal C++ program reports: 

        '185.202.110.161 not found in GeopIP database':

    int main()
    {
        char const *ip = "185.202.110.161";
    
        GeoIP *gi = GeoIP_open("/usr/share/GeoIP/GeoIP.dat", 
                                GEOIP_MEMORY_CACHE); 
        if (!gi)
            return 1;

        char const *country = GeoIP_country_code_by_addr(gi, ip);
        if (!country)
            cout << ip << " not found in GeopIP database\n";
    }


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Since libgeoip1 lists www.maxmind.com] as its 'External Resource', I entered
the above address at https://www.maxmind.com/en/home

   * What was the outcome of this action?

The page https://www.maxmind.com/en/geoip2-precision-demo was opened and
showed the correct country and ISP.

   * What outcome did you expect instead?

Since www.maxmind.com correctly reported details like the address's country
and ISP, I had expected that libgeoip1 would also produce the correct
country. I tried several other (existing) addresses using the above program,
and it correctly produced the countries of those addresses


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-2-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libgeoip1 depends on:
ii  libc6  2.32-5

Versions of packages libgeoip1 recommends:
ii  geoip-database  20191224-3

Versions of packages libgeoip1 suggests:
ii  geoip-bin  1.6.12-8

-- no debconf information

Reply via email to