I have ip_table
as below. Suppose my IP address is 1.22.13.15
. But in my table this exact IP address is not available, This IP address is in the range between 0/24
. How can I get the geoname_id
for this IP address? Can someone assist me? Or there is any other way?
+---------------+------------+
| ip_adr | geoname_id |
+---------------+------------+
| 1.22.13.0/24 | 1279233 |
| 1.22.130.0/23 | 1273294 |
| 1.22.132.0/23 | 1267995 |
| 1.22.134.0/23 | 1253405 |
| 1.22.136.0/21 | 1269750 |
+---------------+------------+