write a method and a test to retrieve address information for an ip address