Closed daviddias closed 7 months ago
Hi,
I would like to help out with this. I see that for IPv4 addresses you lookup locations from here. Any idea where I can lookup IPv6 address locations?
@nithinkrishna try GeoLite2 data set (licensed under CC-BY-SA): https://dev.maxmind.com/geoip/geoip2/geolite2/
You are probably interested in CSV format. Each ZIP includes *IPv6.csv
FWIW fwiw source CSV identified by DATA_HASH
in src/generate/index.js
includes IPV6 info in GeoLite2-City-Blocks-IPv6.csv
:
$ ipfs ls bafybeicfcxk4bx3nwmg3hwjmlc6n2qzn73mfm5itfpadwh5w7bux2chgz4
bafkreihes7r7nzovjeihybcvm7r4wofc4raq4auw56ufn2dnte4tioso2e 55 COPYRIGHT.txt
bafybeihdsvtywrrbmoqisqrltapw2zbgbu5tl6x5ijjmrauo6boeqo3vay 218942111 GeoLite2-City-Blocks-IPv4.csv
bafybeibvkpyxiad2at2ld4hgjat2boqkpolg3niqekp67fugrnp4pbvihi 80894247 GeoLite2-City-Blocks-IPv6.csv
bafybeicrybijxosuh4l4mrtfc6hi4ey6rvv5pluqhnqzdozqkk34svp4yy 8730908 GeoLite2-City-Locations-de.csv
bafybeiatzmaijbha4n6fmfqiy3vm4k62k5jbeu27rtkdcdjhgslcadxqqa 10432599 GeoLite2-City-Locations-en.csv
bafybeifqloagg3fjnyt5loeac4j2xl6nuav4mgywkk5x7tqe6exxirv2wy 8663321 GeoLite2-City-Locations-es.csv
bafybeiaqi4ayqxex2y4szinily32bah2vahhbkxb6j2xiamtpf7am56kte 9258315 GeoLite2-City-Locations-fr.csv
bafybeiguklag6kpmr3nvtrqrthj7m4lhi5dst4ems25h2mdswkgzultnxa 11645375 GeoLite2-City-Locations-ja.csv
bafybeie2hoxesntzwzwrpzeaxrb3wiudgoy2j3a2umnb5jyqom7s6zkyiu 8668327 GeoLite2-City-Locations-pt-BR.csv
bafybeic5yeidvb7dsreanhhlxllm7wacnkbwwrczcjk5o3hzayl3lznuva 11729812 GeoLite2-City-Locations-ru.csv
bafybeicvkmkdettefag6ai6v6uwf5hp6f2knjlvwpqsrdpgbk6ieuruca4 9019475 GeoLite2-City-Locations-zh-CN.csv
bafkreic7pswr7zmeynivapbgoi44p5fauyhofvfhhidefqhxziixfuqvom 398 LICENSE.txt
We are not using them during b-tree generation – it is IPv4 only atm, but we could – PR welcome!
https://github.com/ipfs/ipfs-geoip/blob/master/src/pretty.js#L26-L29