469,631 Members | 1,659 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

dns lookup from .net -- validate email address (domain)

Hi,

I would like to validate an email address from .net. Now before you scream
regular expression I would like something a bit better than this.

I would like to validate the domain, and maybe lookup to see if the domain
has a valid MX record.

can anybody tell me if this is possible using .net and if so point me in the
right direction.

If it is possible then would it also be possible to make sure that I get an
authorative answer and not just an answer from any old server.

many thanks in advance.

martin.


Nov 18 '05 #1
2 2211
You can do some pretty decent DNS stuff with the System.Net.Dns object, but
there are also some more powerful third-party components that would probably
save a lot of hand-coding, such as the one at:
http://www.asp.net/ControlGallery/Co...740&tabindex=2

You should be able to find a ton more over at the www.asp.net control
gallery just by searching on DNS.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"martin" <St**************@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I would like to validate an email address from .net. Now before you scream
regular expression I would like something a bit better than this.

I would like to validate the domain, and maybe lookup to see if the domain
has a valid MX record.

can anybody tell me if this is possible using .net and if so point me in the right direction.

If it is possible then would it also be possible to make sure that I get an authorative answer and not just an answer from any old server.

many thanks in advance.

martin.

Nov 18 '05 #2
Here's another great third party MX record validator:
http://www.aspnetmx.com

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"martin" <St**************@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I would like to validate an email address from .net. Now before you scream
regular expression I would like something a bit better than this.

I would like to validate the domain, and maybe lookup to see if the domain
has a valid MX record.

can anybody tell me if this is possible using .net and if so point me in the right direction.

If it is possible then would it also be possible to make sure that I get an authorative answer and not just an answer from any old server.

many thanks in advance.

martin.

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by michaaal | last post: by
12 posts views Thread by Dag Sunde | last post: by
4 posts views Thread by peak | last post: by
23 posts views Thread by codefire | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.