Solved

Name server queries with c or c++

Posted on 2000-03-25
3
221 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now