Home > Zones > Country names zone

Country names zone

Got a country code to country name zone up and running a few days ago. Since iploc.org doesn’t require a local database for geolocation I thought it would be nice to not need a database for country codes either.

[kimmy@t61 ~]$ host www.google.com
www.google.com is an alias for www.l.google.com.
www.l.google.com has address 74.125.79.147
www.l.google.com has address 74.125.79.99
www.l.google.com has address 74.125.79.103
www.l.google.com has address 74.125.79.104

[kimmy@t61 ~]$ host -t TXT 104.79.125.74.cc.iploc.org
104.79.125.74.cc.iploc.org descriptive text "US"

[kimmy@t61 ~]$ host -t TXT US.cc.iploc.org
us.cc.iploc.org descriptive text "United States of America"

[kimmy@t61 ~]$ host -t TXT uk.cc.iploc.org
uk.cc.iploc.org descriptive text "United Kindom"

[kimmy@t61 ~]$ host -t TXT ag.cc.iploc.org
ag.cc.iploc.org descriptive text "Antigua and Barbuda"

The zone to query is the same cc.iploc.org as it is for geolocation, but instead of doing a lookup for the reversed IP address we’ll do a TXT lookup for the country code + .cc.iploc.org.

kimmy Zones

  1. No comments yet.