Results 1 to 6 of 6

Thread: Socket Programming Port53 QTcpSocket/QUdpSocket

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Socket Programming Port53 QTcpSocket/QUdpSocket

    I like to write a DNS tool wo can convert records from bind8/bind9 to djbdns or to othe dns server.. if the RFC spec. is not to long why not self write a dns server? Easy and simple... Try yourselft to install && configure a DNS Server...

    I not found the correct Specifications what client/server need to query domain name...

    I suppose the Socket query request is only (MX domainname) or similar...

    3 month a go i write a webdav client && i found the correct Specifications on http://www.webdav.org/specs/rfc2518.html and is possibel to write a client that can handle...

    DNS Specifications RFC is a crazy labyrint protocoll to find on google!

    I found only :
    http://www.dns.net/dnsrd/rfc/
    http://www.dns.net/dnsrd/programming.html
    http://www.dns.net/dnsrd/tools.html
    http://www.lifewithdjbdns.com/

    I want only query CNAME/MX/A/NS/PTR records....

    where is the place to find corect Specifications??

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Socket Programming Port53 QTcpSocket/QUdpSocket

    How about just using libnsl?

  3. #3
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Socket Programming Port53 QTcpSocket/QUdpSocket

    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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Socket Programming Port53 QTcpSocket/QUdpSocket

    Quote Originally Posted by patrik08 View Post
    Why http://doc.trolltech.com/3.2/qdns.html is not running? on QT4 is comming new??
    Sorry?

    This is not fast!
    In what way not fast? It uses your platform mechanisms so it should be exactly the same in speed as other DNS lookups.

    libnsl dont have TTL or MX prior..
    "dig" uses libnsl and you can do everything with it (including AXFR transfers) so I can't agree with what you said.

  5. The following user says thank you to wysota for this useful post:

    patrik08 (9th May 2007)

  6. #5
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Socket Programming Port53 QTcpSocket/QUdpSocket

    Quote Originally Posted by wysota View Post
    Sorry?
    "dig" uses libnsl and you can do everything with it (including AXFR transfers) so I can't agree with what you said.
    Excuse I did not know it thad dig use this lib.. is dig source avaiable to find-know self doc from this lib? Place?

  7. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Socket Programming Port53 QTcpSocket/QUdpSocket

    dig is part of bind-utils (or simmilar) package and is under GPL, so yes, sources are available.

Similar Threads

  1. Can any One help me? - Socket Programming?
    By vinod in forum Qt Programming
    Replies: 6
    Last Post: 18th November 2009, 09:46
  2. Using QGraphicsView with model/view programming
    By JLP in forum Qt Programming
    Replies: 3
    Last Post: 29th January 2007, 11:04
  3. How to write on a socket in another thread?
    By Valheru in forum Qt Programming
    Replies: 7
    Last Post: 12th October 2006, 10:52
  4. qt socket question
    By bluesguy82 in forum Qt Programming
    Replies: 4
    Last Post: 29th August 2006, 15:42
  5. Problems in socket programming
    By vinod in forum Qt Programming
    Replies: 1
    Last Post: 7th March 2006, 08:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.