Page 1 of 1

ENC28J60 DNS lookup

Posted: Tue May 17, 2016 2:48 am
by cruzxia
I have setup a web server using the ENC28j60 component.

I have setup a SMTP mail client and to send an email I need two things.
1. The IP address of the mail server
2. The MAC address of the local Router/Gateway.

Is there a way to do a DNS lookup request to retrieve the IP address of the mail server and retrieve the MAC address of the local router/gateway at the same time?

The idea is so that you can just enter your mail server E.g “mail.mymailserver.com” and do a DNS lookup to read the IP and MAC info.

Cruzxia