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

C

Cleilton

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)
(e-mail address removed)
http://www.secrel.com.br
MSN (e-mail address removed)
===================
 
J

Joerg Jooss

Cleilton said:
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,
 
C

Cleilton

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: (e-mail address removed)
ICQ: 5717343

---------------------------------
 
Joined
Sep 25, 2011
Messages
1
Reaction score
0
New Code

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)
(e-mail address removed)
http://www.secrel.com.br
MSN (e-mail address removed)
===================

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

http://stackoverflow.com/questions/...-dns-name-with-system-net-dns/7546721#7546721
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top