How to implement DIG in C++ ???

I'm trying to make an SMTP server to send emails.
The problem is that I have to know where to send the data (until now it just relays to some fixed smtp servers on the net).
I therefore need to implement some kind of dig (I was told something like MX...???)
Could you explain me how to do it?
And if possible post some code (that works on Windows)?

.: Snyke :.
LVL 1
SnykeAsked:
Who is Participating?
 
_nn_Commented:
Following URL seems to have what you need :
http://www.codeguru.com/internet/DnsResolver.html
0
 
SnykeAuthor Commented:
Isn't there a lighter thing?
I just need something to get the MXs and this one gets everything, making my program really heavy...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.