mTCP DNSTest Command line DNS resolver 2009-04-26 Version Michael Brutman (mbbrutman@yahoo.com) Hardware requirements: 8088 processor or better Somewhere between 96KB and 128KB available RAM Display: CGA, EGA, VGA or MDA Supported Ethernet card Software requirements: DOS 2.0 or newer (DOS 3.3 or newer recommended) Packet driver for your Ethernet card Introduction This is a simple utility for resolving machine names to IP addresses. It uses UDP only, which is standard for DNS. If you are curious there is a lot of debug output available using a command line option. Requirements DNSTest is built using the mTCP library. The setup instructions for mTCP can be found in SETUP.TXT. In particular, if you do not use DHCP make sure your NAMESERVER setting in the mTCP configuration file is correct and matches the setting used by other machines on your network. DNS resolving will not work if the NAMESERVER setting is not set or is set wrong. Using DNSTest Usage is like this: dnstest -name [options] Options are: -help Show a help message -norecurse Do not request a recursive lookup -timeout Timeout after n seconds -verbose Turn on verbose debug messages The -norecurse option requires some explanation. Normally mTCP will send DNS requests with the 'recursion requested' flag turned on in the request. This makes the nameservers do a lot of the work necessary to resolve a name. If you set this option that flag will not be set and you will see a lot more activity on your machine to do the same DNS lookup. It is interesting to play with but is inefficient for normal lookups. Use this option with the -verbose option to see the full effect. Here is some sample output: E:\dnstest -name www.brutman.com DNStest by M Brutman (mbbrutman@yahoo.com) Version: Apr 26 2009 Timeout set to 10 seconds, DNS Recursion = on Press [ESC] or [Ctrl-C] to quit early Machine name www.brutman.com resolved to 209.216.249.199 Elapsed time in seconds: 0.055 Packets: Sent: 2 Rcvd: 3 Dropped: 0 LowFreeBufCount: 19 If you specify the -verbose options you will see a lot more output! Changes: 2009-01-18: Make resolving more robust when recursive mode is turned off. 2008-12-30: First public version Created December 31st, 2008, Last updated April 26th, 2009 (C)opyright Michael B. Brutman, mbbrutman@yahoo.com