Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Get MX Record of a domain

Get MX Record of a domain

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomsysadminhelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chintan
    wrote on last edited by
    #1

    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

    D T 2 Replies Last reply
    0
    • C Chintan

      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

      D Offline
      D Offline
      Dudi Avramov
      wrote on last edited by
      #2

      You should get it from the DNS. NSLookup might help.

      C 1 Reply Last reply
      0
      • C Chintan

        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

        T Offline
        T Offline
        Tim Smith
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • D Dudi Avramov

          You should get it from the DNS. NSLookup might help.

          C Offline
          C Offline
          Chintan
          wrote on last edited by
          #4

          Sir, is it possible with NSLookup to find MX Record programmatically? If so please send me any code if you have. Regards. C.R.Naik

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups