Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to implement DIG in C++ ???

Posted on 2003-11-29
2
Medium Priority
?
714 Views
Last Modified: 2012-05-04
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 :.
0
Comment
Question by:Snyke
2 Comments
 
LVL 16

Accepted Solution

by:
_nn_ earned 250 total points
ID: 9843033
Following URL seems to have what you need :
http://www.codeguru.com/internet/DnsResolver.html
0
 
LVL 1

Author Comment

by:Snyke
ID: 9843477
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question