command prompt to verify DNS resolves or IP address valid
$30-5000 USD
已完成
已发布超过 11 年前
$30-5000 USD
货到付款
Command line utility (unmanaged C++, Visual Studio 2008) which takes one parameter, which is either a DNS name or an IP address (similar to how PING accept a single parameter). It verifies that it is correct and shows "OK", or returns an error message "ERROR: <error message>".
If the parameter was an IP address, verify it's a valid IP address (i.e., defined as public or private IP, not something out of legal range like 0.0.0.0). If it is a hostname, it should resolve to IP using DNS lookup.
The program should be structured so there is a function/method that takes a single string parameter and returns a boolean result; and another function to retrieve the error string if the result was false.
## Deliverables
Visual Studio 2008
C++ MFC
Command line command
Must run successfully in Windows XP through Windows 8, and Windows Server 2003 through Windows Server 2008 R2.