Solved

Name server queries with c or c++

Posted on 2000-03-25
3
224 Views
Last Modified: 2013-12-05
Where I can find examples how to program name server queries? I'm writing smtp client, which will accept internet addresess like somebody@company.com. I need to query mail server for company.com. I can do this by executing nslookup and piping result to file, but I'm looking more sophisticated solution. Any suggestions?

0
Comment
Question by:kettu
3 Comments
 
LVL 4

Expert Comment

by:feenix
ID: 2656616
First, why do you want to send the email directly to the recipient's email server? Wouldn't it be easier to just send the email to your ISP's SMTP server?

0
 
LVL 1

Expert Comment

by:ntdragon
ID: 2656660
i didn't understand exectlly what do you want but check c++builder there is everything you need for making an e-mail server<and you can check the help>
0
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 2657056
Grab a copy of any linux distribution that includes its source code.  The nslookup utility as well as sendmail both have working examples of this.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Suggested Solutions

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

808 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