PDA

View Full Version : Socket Programming Port53 QTcpSocket/QUdpSocket



patrik08
8th May 2007, 16:29
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...:confused:

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??

wysota
8th May 2007, 20:48
How about just using libnsl?

patrik08
8th May 2007, 21:39
How about just using libnsl?


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



QHostInfo::lookupHost("qtcentre.org",this, SLOT(LookedUp(QHostInfo)));

void DnsQuery::LookedUp( const QHostInfo &host )
{
if (host.error() != QHostInfo::NoError) {
qDebug() << "Lookup failed:" << host.errorString();
return;
}

foreach (QHostAddress address, host.addresses()) {
qDebug() << "Found address:" << address.toString();
}

}



This is not fast! :crying:

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

wysota
8th May 2007, 22:12
Why http://doc.trolltech.com/3.2/qdns.html is not running? on QT4 is comming new??
Sorry?


This is not fast! :crying:
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.

patrik08
9th May 2007, 09:42
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?

wysota
10th May 2007, 17:59
dig is part of bind-utils (or simmilar) package and is under GPL, so yes, sources are available.