Get MX Record of a domain
-
Sir, I want to develop OutSmtp type application. For that it is necessary to find out MX Record for a particular domain. For example if the To: address is abc@xyz.com, first of all I have to find out the mail server of xyz.com. How can I get the MX Record of a domain? Please help me.... C.R.Naik
-
Sir, I want to develop OutSmtp type application. For that it is necessary to find out MX Record for a particular domain. For example if the To: address is abc@xyz.com, first of all I have to find out the mail server of xyz.com. How can I get the MX Record of a domain? Please help me.... C.R.Naik
You should get it from the DNS. NSLookup might help.
-
Sir, I want to develop OutSmtp type application. For that it is necessary to find out MX Record for a particular domain. For example if the To: address is abc@xyz.com, first of all I have to find out the mail server of xyz.com. How can I get the MX Record of a domain? Please help me.... C.R.Naik
Look at the DnsQuery and associated routines. Also, check the SMTP RFC for the proper fallback searches for when MX records don't exist. One problem with DnsQuery is that it isn't support on 9x or NT4. I haven't found an alternative. Tim Smith I'm going to patent thought. I have yet to see any prior art.
-
You should get it from the DNS. NSLookup might help.