mIRC Home    About    Download    Register    News    Help

Print Thread
#83969 24/05/04 06:46 AM
A
anss
anss
A
I want to query a dns server, and get MX records for domains and such.

Does anyone understand/know the dns protocol? I tried, but i cant figure it out. I think the best way to do it would be to code it into mirc instead of using com object(buggy unreliable etc) or a dll (none exists anyway)

I need this method to work on any computer(using ISP dns server), so using something like nslookup wont work. I need to code a dns client in mirc :X

Any suggestion or examples? confused

Last edited by anus; 24/05/04 06:50 AM.
#83970 24/05/04 11:38 AM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
I think DNS is too-large a subject to answer in a forum. I suggest this site http://www.dns.net/dnsrd/ but you could also use your favourite search engine with "Domain Name System" as the key words.

#83971 24/05/04 05:24 PM
A
anss
anss
A
Actually it would be something simple, maybe a few lines of code. it would be something like this

sockwrite dnsserver query=mirc.com querytype=MX

And the server would reply with the answer. I just cant figure out the syntax :X And yes ive tried google etc

#83972 24/05/04 05:51 PM
Joined: Feb 2003
Posts: 306
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 306
hello, i also made a search on that and i found that it uses UDP.
So i whent to my Ethereal and put it snifing while in browser i typed www.sdfsd.fgfds.pt (since my browser and OS didn't know it, a query was sent). I can send you the log if you want but you can also check for your self if you get the program.

Have a good work on that
tontito

#83973 25/05/04 03:27 AM
A
anss
anss
A
Thanks, could you email me the log? bl4h@usa.com

Im on a 100mhz computer right now(main PC fried), and ethereal is too much. I apreciate your help.

Last edited by anus; 25/05/04 03:30 AM.
#83974 25/05/04 02:50 PM
Joined: Feb 2003
Posts: 306
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 306
ok i am sending atm. smile


Link Copied to Clipboard