PDA

View Full Version : DNS MX lookups



stevey
7th January 2008, 04:13
Hi,

Can anyone recommend a way of looking up MX records on a domain using Qt classes ?
I found references to Q3DNS, but would rather not use Qt3 support.


Thanks,

Steve York

jpn
7th January 2008, 09:39
You mean like... QHostInfo?

stevey
8th January 2008, 10:21
On the surface, the doco doesn't specify anything about getting a list of MX records the way Q3Dns does. Am I mistaken?

I've found PSI which has an implementation of QDns called QJDns.
Would this be the better way to go?

It specifically has a function for getting a string list of MX records.

Thanks,

Steve

stevey
9th January 2008, 23:57
Aah, I thought QJDns was a straight replacement but it doesn't have the 'mailServers()' function. :(

stevey
10th January 2008, 01:26
So, does anyone know how to get a list of MX records associated with a domain name?
Is it possible with QHostInfo?

jpn
10th January 2008, 06:05
Interesting, perhaps Trolls missed to add the feature in Qt 4. You could try sending a suggestion.