Is it possible to Resolve URL to IP Address?

I am currently sending emails from my Arduino Mega using Smtp2Go. Unfortunately, I have to hard code the IP address as follows:

byte server[] = { 207,58,147,66 };  // Nslookup smtpcorp.com

EthernetClient client;

void sendEmail(char subject[], char message1[], char message2[], float temp) {

 if (client.connect(server,2525)) {
   Serial.println("connected");
}

Is there any way I can use smtpcorp.com instead of 207.58.147.66? IP addresses can change (and often do). If smtpcorp.com changes the IP address, my program will fail. So, I'd like to prevent that problem by using DNS for name resolution. Is this possible?

Since the Arduino Mega doesn't innately have network capabilities, I'm assuming you are using some ethernet/wifi hardware? Which?

This may be what you are looking for: http://arduino.cc/en/Tutorial/DnsWebClient

Since the Arduino Mega doesn't innately have network capabilities, I'm assuming you are using some ethernet/wifi hardware? Which?

I'm using this Ethernet shield https://www.sparkfun.com/products/9026 which works without having to make any modifications to the shield such as bending the pins and rerouting the pins from 52 to 12 etc. This Ethernet shield is essentially "plug and play" with the Arduino Mega.

pYro_65:
This may be what you are looking for: http://arduino.cc/en/Tutorial/DnsWebClient

Yep. That worked. Thanx!