DNS lookup in c/c++

I must write a C/C++ program which works a little bit like dig and nslookup: it must know IP addresses of any site. It should do things like the dig www.example.com MX +short command does. I can't imagine how can this be done. Any ideas?


Use any resolver library you like. Popular libraries include UDNS and adns. You could also just modify the source code to dig (which is part of the bind distribution).

Need Your Help

Import Data into Excel from Access Table

sql excel excel-vba access-vba ms-access-2010

I am trying to import data into Excel from an Access table. I am getting a syntax error This error comes up when I run the line: .Select [Time], [Tank], FROM "UnitOneRouting", WHERE [Date] = " &

pass property as argument in javascript

javascript html document-body

I am using the following code.I want to pass property bgcolor as argument