nslookup will give you the public IP address of a website, DNS, or mail server that has been registered, but it is unlikely it will give you your OWN public IP address.. you should use curl as explained in the other thread..
aptitude update
aptitude install curl
|