문제

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top