We use maxmind for a similar process. We use their webserivce in conjunction with .net and find the API queries to return the country in a speed unnoticeable to users of the system.
They have sample code for various languages.
I don't know much about BGP but I would imagine that max minds 5 lines of code is simpler to add than managing the BGP process. However as mentioned by Rob its not allways 100% accurate but if its good enough for google (google analytics) it should hopefully be accurate enough
Gareth Davies
Senior Systems Administrator
DD +64 9 574 0123 EXT 8465
www.fphcare.com
From: nznog-bounces(a)list.waikato.ac.nz [mailto:nznog-bounces(a)list.waikato.ac.nz] On Behalf Of Scott Howard
Sent: Monday, 24 March 2014 9:34 a.m.
To: Clark Mills
Cc: nznog
Subject: Re: [nznog] List of NZ IP addresses?
Just use the MaxMind and either a plug-in for your web server, or something within the web app itself. Their CityLite or CountryLite database is free, and accuracy at the country level is very good (although not always perfect, but nothing is ever going to be perfect).
www.maxmind.comhttp://www.maxmind.com
Scott
On Sun, Mar 23, 2014 at 12:51 PM, Clark Mills