Click here to Skip to main content
Click here to Skip to main content
Go to top

DNS if u need it

, 1 Oct 2002
Rate this:
Please Sign up or sign in to vote.
Simple quering DNS servers for retrieve information about host's DNS records
<!-- Download Links --> <!-- Add the rest of your HTML here -->

Introduction

Some times you want to receive information from DNS servers using C++. This simple project shows how you can send and receive messages to and from DNS servers.

There are 2 downloads supplied (see above)
The first download contains the DNS structures and CDnsResolver class that you can use to make queries of your own.
The second download contains a sample project, console application.
Use sample app:
usingdns.exe DNS server mail_host mail_host [any count hosts]

For advanced users I'm add new demo project dgramm.zip
This showing as interpret DNS answers (gethostbyname() too Wink | ;)

This cool for Mail servers or just for study how it works.

For more inforamtion read the RFC documentation at DNS.NET [^] which also contains a number of useful tools.

If you know how to return this information under plain Win32 please post a message below.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

DarkSn0w
Web Developer
Russian Federation Russian Federation
Programmer with 5 year of work
like networking applications and fun codes

Comments and Discussions

 
GeneralGREAT CODE!!!!! PinsussBarçaBoy6-Nov-03 8:45 
GeneralRe: GREAT CODE!!!!! PinmemberDarkSn0w6-Nov-03 19:44 
GeneralRe: GREAT CODE!!!!! PinsussAnonymous25-Dec-03 7:02 
GeneralRe: GREAT CODE!!!!! PinmemberDarkSn0w8-Jan-04 23:57 
GeneralRe: GREAT CODE!!!!! Pinsussd-code3-Dec-04 10:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 2 Oct 2002
Article Copyright 2002 by DarkSn0w
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid