 |
|
 |
S'est tres bien! Je vous remercie!
|
|
|
|
 |
|
 |
They are almost all warning C4786. Visual Studio 6 SP5. The Platform SDK include\lib come after those shipped in VS. Windows 2000 Server SP3
|
|
|
|
 |
|
 |
MSDN says: 'identifier' : identifier was truncated to 'number' characters in the debug information.
This is STL warning error, debug information is cutting.
You may not use STL arrays or maps in my code. This will fun!
|
|
|
|
 |
|
 |
Thanks Dark Sn0w. Any ideas how to stop them? Just make a release instead of a debug version?
|
|
|
|
 |
|
 |
Place code of DNS Resolver (or what from my code) in stdafx.h...
This will genetate message one, when compiling stdafx.h...
Don't know will this work or not. When compiled release version, this don't show messages... or... in MSND say as disable this message, you must make large space for debug info.
or you can make not typedef std::vector...(or map), you must make class qqq:public std::vector{};... and this will not make this messages... Try and try. this question not for me, for c++ cool gays...
|
|
|
|
 |
|
 |
very very good!
it just does what it needs to do, fast and efficient without doing other stuff like the "real CDnsresolver" class does on Codeguru.com
but i have 1 remark:
or its my imagination OR this code is used in Sobig.F + Mimail worms
since they 1) check the current Dns (not implemented here however)
2)query all the mx records
and thats just what your code does, they just needed to implement the files and there ready
:s:s
too bad that viruswriters also visit websites like these :'(
Or maybe its just my imagination, but look on the internet
how many codes do you find doing this?
and how easy is it to code?
|
|
|
|
 |
|
 |
what easy for code?
viruses? i'm don' write any viruse.
this not my profile...
|
|
|
|
 |
|
 |
?
yeah surr barçaboy, those viruswriters used this code
great code anyway.
just 1 question:
to use the code, you need to enter the domain name server.
how can you query this without knowing it.
i've seen programs doing it, have searched for it awhile but can"t find it :s
all i know is that when a program f.e tried to query the dns, it connects to this default name server (which ofcourse is different from isp to isp)
anyone know how to do it??
|
|
|
|
 |
|
 |
you may send query to any know DNS server. This may be DNS of your ISP or any ISP.
|
|
|
|
 |
|
 |
You could also send a request directly to a root server, which in turn will forward you to the DNS server that you need to contact for the particular record
|
|
|
|
 |
|
 |
very very good!
it just does what it needs to do, fast and efficient without doing other stuff like the "real CDnsresolver" class does on Codeguru.com
but i have 1 remark:
or its my imagination OR this code is used in Sobig.F + Mimail worms
since they 1) check the current Dns (not implemented here however)
2)query all the mx records
and thats just what your code does, they just needed to implement the files and there ready
:s:s
too bad that viruswriters also visit websites like these :'(
Or maybe its just my imagination, but look on the internet
how many codes do you find doing this?
and how easy is it to code?
|
|
|
|
 |
|
 |
thanks for ur code
I want to use ur code to design a tool to test ENUM service.
so , I will add NAPTR(ref to RFC 2915) record to ur source code.
anyway , thanks
|
|
|
|
 |
|
 |
nice work
I wonder if you could add more functions in it
especially the one that can do the same thing as gethostbyaddr()/WSAAsyncGetHostByAddr()/getnameinfo()
why I need that ?
1. gethostbyaddr() is not thread-safe
2. getnameinfo() is for win2k/xp only
3. WSAAsyncGetHostByAddr() is not designed for multi-thread use
4. it's easy to add the "Terminate" function in your code. gethostbyaddr() sometimes take many seconds to return the result, and no way to terminate while querying.
therefore, it would be much appreciated if you can add this new function
thank you
|
|
|
|
 |
|
 |
OK. this code is thread safe, what do you tell about Terminate function? where do you will user this?
In this code wery easy make terminate fuction, look at line witch WaitForSingleObject() function in query() function and you can make in this anything.
|
|
|
|
 |
|
 |
Just what i needed...thanx for sharing your work. nevermind the english... most ppl here speak c++ instead... or they should..
|
|
|
|
 |
|
 |
thanks you. but i'm want make this more goodly. but i'm don't know as do it. this code is no 100% good. i'm must read full RFC, but i'm don't understant many words in this and my code not 100% compatible with RFC ;((
|
|
|
|
 |
|
 |
Starting with Windows 2000, the Win32 API supports a function called DNSQuery() which does direct DNS queries for any record type. It even supports IPv6 type records.
Nice alternative if you are not depending on backwards compatibility.
... you keep forgetting that sheep shagging is not a crime in Australia ...Paul Watson, The Lounge
|
|
|
|
 |
|
 |
can you use this in win9x suxx? or wince?
|
|
|
|
 |
|
 |
I maked such mistake...
It so buggy, no more comments
|
|
|
|
 |
|
 |
may be this has some mistakes and other things. but you may say about it, and i'm change this bugs. this code is only for education and i'm make for self study only .
|
|
|
|
 |
|
 |
i'm know what this code has many errors..
but there was for testing of DNS quering and this belove that DNS answer has no any errors. If DNS answer is not corrent. this may fail. I have correct code for commercial application, but for beginners and this very good. Sorry for this errors.
|
|
|
|
 |
|
 |
works well here! The article maybe a little terse but the code is good!
If people find something doesn't work for them - it helps if you can give a little information as to what the problem is - otherwise such comments are of little use to anyone!
|
|
|
|
 |
|
 |
Yeah this code is really wonderful (i normally dont say this, but this is just great!). I guess wukas a newbie. Start reading How to C++ wukas.
Umer Mansoor
|
|
|
|
 |
|
 |
Hi,
How can I use this to get a host IP address by its DNS name
just like gethostbyname() does ?
Thanks.
|
|
|
|
 |
|
 |
This is simple answer if you cnow as use DNS
I'm update my article and add new Project: dgramm
Run it's programm and look at results. For your answer look at A Record
|
|
|
|
 |