Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
dig や nslookup のように機能する C/C++ プログラムを作成する必要があります。どのサイトの IP アドレスも認識している必要があります。dig www.example.com MX +short コマンドと同じようなことを行う必要があります。どうすればこれができるのか想像できません。何か案は?
好きなリゾルバ ライブラリを使用します。人気のあるライブラリにはUDNSとadnsが含まれます。ソース コードを(バインド配布digの一部である) に変更することもできます。
dig