Solved

Name server queries with c or c++

Posted on 2000-03-25
3
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error I/O in copying in linux redhat 12 96
Script to modify multiple files in Ubuntu / CentOS 2 59
Acrinis True image 2 110
Setting variables in a stored procedure 5 51
Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

733 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