dns.cpp
来自「dns 解析源代码」· C++ 代码 · 共 27 行
CPP
27 行
/*==================================================================
JLee's DNS Resolver v1.00
by: June Lee "JL栝" Gabales
email: j_lee_ph@yahoo.com, jlee@jlee.homeunix.com
Uses the Winsock API (winsock.h) and compiled under Bloodshed
Dev-C++ v4.9.8.7, which you could download in the net. Link with
libwsock32.a when compiling. I still have to implement a windows
version (since it's still a console application).
I made this test program to learn dns querying for a socks project
that I am currently making.
Usage: dns.exe [hostname or ip address]
Where: dns.exe: the program executable
hostname: host or domain to resolve, ie: www.yahoo.com
ip address: ip address to resolve, ie: 127.0.0.1
Note: if no parameters are passed on the command line, the default
hostname that it will resolve is the local machine's loopback or
localhost (127.0.0.1). You also need to have an internet
connection to resolve hostnames online, otherwise a DNS lookup
failed Error will occur.
Links:
http://www.bloodshed.net Bloodshed Dev-C++
http://www.mingw.org MingW Compiler for windows
http://geocities.com/j_lee_ph don't visit here... =
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?