MX lookup using only asp.net library, without third components?

Discussion in 'ASP .Net' started by Cleilton, Jan 6, 2004.

  1. Cleilton

    Cleilton Guest

    Hello all,

    I have an apllication in ColdFusion that shows the MX record (mail host
    name) from a domain. I enter with the domain name (ex. microsoft.com) and
    the aplication return the mail server for that domain (ex.
    mail.microsoft.com).

    How can I make that using asp.net, only using dns classes or anything like
    this?
    But I won't to use any component :) .

    Thanks for your attention

    ===================
    Cleilton
    WebDeveloper (ASP,PHP,JSP)

    http://www.secrel.com.br
    MSN
    ===================
     
    Cleilton, Jan 6, 2004
    #1
    1. Advertisements

  2. Cleilton

    Joerg Jooss Guest

    "Cleilton" wrote:

    > Hello all,
    >
    > I have an apllication in ColdFusion that shows the MX record (mail
    > host name) from a domain. I enter with the domain name (ex.
    > microsoft.com) and the aplication return the mail server for that
    > domain (ex. mail.microsoft.com).
    >
    > How can I make that using asp.net, only using dns classes or
    > anything like this?
    > But I won't to use any component :) .


    Here's a sample that illustrates MX record retrieval:

    http://www.csharphelp.com/archives/archive43.html

    Cheers,
    --
    Joerg Jooss
     
    Joerg Jooss, Jan 11, 2004
    #2
    1. Advertisements

  3. Cleilton

    Cleilton Guest

    Thanks for your help Joerg :).
    I put the code on my aspx page and all worked very well.
    Thanks, thanks

    Cleilton (Web Developer)
    E-mail:
    ICQ: 5717343

    ---------------------------------
    "Joerg Jooss" <> escreveu na mensagem
    news:...
    > "Cleilton" wrote:
    >
    > > Hello all,
    > >
    > > I have an apllication in ColdFusion that shows the MX record (mail
    > > host name) from a domain. I enter with the domain name (ex.
    > > microsoft.com) and the aplication return the mail server for that
    > > domain (ex. mail.microsoft.com).
    > >
    > > How can I make that using asp.net, only using dns classes or
    > > anything like this?
    > > But I won't to use any component :) .

    >
    > Here's a sample that illustrates MX record retrieval:
    >
    > http://www.csharphelp.com/archives/archive43.html
    >
    > Cheers,
    > --
    > Joerg Jooss
    >
     
    Cleilton, Jan 13, 2004
    #3
  4. Cleilton

    ccsalway

    Joined:
    Sep 25, 2011
    Messages:
    1
    Likes Received:
    0
    New Code

    I have just written an ASP.NET generic handler to do just this (7 years too late)

    http://stackoverflow.com/questions/2669841/how-to-get-mx-records-for-a-dns-name-with-system-net-dns/7546721#7546721
     
    ccsalway, Sep 25, 2011
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lauchlan M
    Replies:
    1
    Views:
    3,142
    S. Justin Gengo
    Aug 26, 2003
  2. mehul
    Replies:
    1
    Views:
    647
    Alvin Bruney [MVP]
    May 3, 2004
  3. Stephen
    Replies:
    0
    Views:
    477
    Stephen
    Jan 3, 2005
  4. acb
    Replies:
    8
    Views:
    975
    Mark Rae
    Nov 25, 2005
  5. Mickey Segal
    Replies:
    0
    Views:
    1,134
    Mickey Segal
    Feb 2, 2004
  6. reju
    Replies:
    7
    Views:
    1,408
    Mark Rae
    Feb 21, 2007
  7. Mark Goldin

    Third party components

    Mark Goldin, Feb 11, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    152
    Valerian John
    Feb 11, 2004
  8. Robert Miller

    using .net components with classic ASP web pages

    Robert Miller, Jan 6, 2006, in forum: ASP General
    Replies:
    3
    Views:
    376
    AnthonyWJones
    Jan 6, 2006
Loading...