if (! cc3000.getHostByName("www.adafruit.com", &ip))

the purpose of this function is to get ip addrress against the website .our program gets stuck when it reaches to this function.But when we give direct ip address in the program above this function it accesses the ip addrees,we also comment the above function for this purpose.but we want to access this function..what should we do??? need help for this purpose...

our hardware is arduino mega 2560 and wifi shield cc3000.