mIRC Home    About    Download    Register    News    Help

Print Thread
#176269 07/05/07 10:25 AM
Joined: May 2007
Posts: 2
T
tehborg Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: May 2007
Posts: 2
hi, i'd like to know how to make a dns query/resolve, and get answers different types of records, like TXT,MX,etc.'

example:
TXT record of dns 154.193.245.88.country.netop.org ?

i read the rfc 1035, but it's like arabic to me :P

Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
If you want to write such a script yourself, you'll mainly have to learn about binary variables and UDP sockets - and, of course, manage to understand the RFC you mentioned. If you just want this functionality as part of something else, then you could take a look at my nslookup script which can already do what you want.

Quote:
[13:58.58] * Resolved 154.193.245.88.country.netop.org (TXT) to TR


Saturn, QuakeNet staff
Sat #176286 07/05/07 03:41 PM
Joined: May 2007
Posts: 2
T
tehborg Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: May 2007
Posts: 2
thanks, nice script, I believe I can learn something out of it! smile


Link Copied to Clipboard