Re: Is this ALL good advise
On Mon, Dec 09, 2019 at 08:46:13PM +1100, Keith Bainbridge wrote:
> On 9/12/19 6:57 pm, Reco wrote:
> > ll it takes is to look at APNIC record with whois.
> > Shows your ISP and a city it's operating at.
> > I could dig deeper, but I'm lazy.
> Thanks Andrei
>
>
> I got 3 addresses
> 2 of them about 3Km away from me (1 in a public park)
> the 3rd, about 4,500Km away from me, but referring specifically to my ISP, must be head office.
>
> and 3 references to my ISP
> 2 by a very old name
> 1 current name (for about 5 years), but referring to that address 4,500Km away
>
> Somewhere I found this curl method.
Why would you need an Web API if you have whois (/32 mask is chosen
deliberately to avoid possible privacy concerns)?
$ whois 2402:b801::/32
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
...
inet6num: 2402:b801::/32
netname: IINET-AU-20120806
descr: iiNet Limited
...
irt: IRT-IINET-AU
address: iiNet Limited
address: Level 9, 250 St Georges Tce
address: Perth
...
Does not show *your* location per se, of course. Hence the "lazy" remark.
> curl http://api.db-ip.com/v2/free/2402:b801:2859::
> {
> "ipAddress": "2402:b801:2859::",
> "continentCode": "OC",
> "continentName": "Oceania",
> "countryCode": "AU",
> "countryName": "Australia",
> "stateProvCode": "VIC",
> "stateProv": "Victoria",
> "city": "Melbourne"
>
>
> Only problem is there is no such continent. How can I believe in its accuracy?
And that's GEOIP, a totally different beast. Somewhat accurate for IPv4,
wildly inaccurate for IPv6.
Reco
Reply to: