Quote Originally Posted by wysota View Post
How about just using libnsl?

Why http://doc.trolltech.com/3.2/qdns.html is not running? on QT4 is comming new??

Qt Code:
  1. QHostInfo::lookupHost("qtcentre.org",this, SLOT(LookedUp(QHostInfo)));
  2.  
  3. void DnsQuery::LookedUp( const QHostInfo &host )
  4. {
  5. if (host.error() != QHostInfo::NoError) {
  6. qDebug() << "Lookup failed:" << host.errorString();
  7. return;
  8. }
  9.  
  10. foreach (QHostAddress address, host.addresses()) {
  11. qDebug() << "Found address:" << address.toString();
  12. }
  13.  
  14. }
To copy to clipboard, switch view to plain text mode 

This is not fast!

libnsl dont have TTL or MX prior..
http://docs.hp.com/en/5965-4406/ch09s08.html