473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2344
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: michaaal | last post by:
I realize this is not solely an ASP question, but I thought you guys might know the answer and I couldn't find anywhere else to post this. If you have suggestions for this I am more than happy to...
12
by: Dag Sunde | last post by:
My understanding of regular expressions is rudimentary, at best. I have this RegExp to to a very simple validation of an email-address, but it turns out that it refuses to accept mail-addresses...
24
by: Arno R | last post by:
Hi all, I have a client with several shoe-shops. Customers can leave their email-address if they want to be notified when there is a sale. Input is validated with instr() I am checking for @...
4
by: peak | last post by:
I need to obtain the ip from an email address, any ideas?
5
by: Ryan | last post by:
HELLO I am using the following MICROSOFT SUGGESTED (somewhere on msdn) regular expression to validate email addresses however I understand that the RFP allows for "+" symbols in the email address...
0
by: comp.lang.php | last post by:
I wrote a method that should check if an email address is valid. In another method I've already checked to see if $_POST exists and is well-formed, so those checks are not necessary in this scope....
23
by: codefire | last post by:
Hi, I am trying to get a regexp to validate email addresses but can't get it quite right. The problem is I can't quite find the regexp to deal with ignoring the case james..kirk@fred.com, which...
1
by: saravanatmm | last post by:
I need javascript code for validate the email address. Email address field cannot allowed the capital letters, special characters except '@' symbol. But can allowed the small letters, numeric...
2
by: surferj | last post by:
Hello, I am trying to validate the suffix of an email address for a string entered into a form to ensure it contains the correct domain. Some of the code i am currently using looks like this for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.