[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

Name server queries with c or c++

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
kettu
Asked:
kettu
1 Solution
 
feenixCommented:
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
 
ntdragonCommented:
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
 
jhanceCommented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now