Hi,

[EMAIL PROTECTED] wrote:
I'm looking for a possibility to retrieve the MX record for a given
hostname. I've already discovered nsIDNSService, but I does not seem to
deliver the MX record. I am even willing to write the lookup from
scratch (based on a socket only), but I have no idea how get the
nameserver's IP with the built-in XPCOM interfaces.

Well, neither of those are available via OS APIs... so they are not exposed by Mozilla either. Necko just calls getaddrinfo when looking up a host name (or gethostbyname, where getaddrinfo doesn't exist), so it does not know what the nameserver is, or even whether one exists.
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to