By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,154 Members | 1,031 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,154 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.