Forum Discussion

3 Replies

  • Hi Nick,

     

     

    Is there one state name you're particularly interested in/unsure about? If so, you could search online to get an example IP address from that state and see what [whereis $ip state] returns for it.

     

     

    Regardless, I would imagine it would be easier to use [whereis $ip abbrev] to get the two letter state code anyhow.

     

     

    Aaron
  • DC is an abbreviation in the GeoIP data from Quova:

    
    when RULE_INIT {
       set ip "138.145.4.3"
       log local0. "whereis \$ip abbrev, state: [whereis $ip abbrev], [whereis $ip state]"
    }
    

    Log output:

    : whereis $ip abbrev, state: DC, District of Columbia

    Aaron