Click here to Skip to main content
15,906,296 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Working with DataSet on client Pin
leckey30-May-08 18:04
leckey30-May-08 18:04 
GeneralRe: Working with DataSet on client Pin
Stephen McGuire31-May-08 6:32
Stephen McGuire31-May-08 6:32 
QuestionSetting dynamic GridView Column properties Pin
Ekjon30-May-08 12:38
Ekjon30-May-08 12:38 
AnswerRe: Setting dynamic GridView Column properties Pin
leckey30-May-08 18:04
leckey30-May-08 18:04 
QuestionText Editor For textbox Pin
Member 410159630-May-08 11:01
Member 410159630-May-08 11:01 
AnswerRe: Text Editor For textbox Pin
NeverHeardOfMe30-May-08 11:46
NeverHeardOfMe30-May-08 11:46 
QuestionCreating a blog page for my web site? Pin
Laisseraller30-May-08 9:35
Laisseraller30-May-08 9:35 
QuestionResolving Domains MX records and IP when Domain Returns 11004 Socket Error Valid Name.... Attemting to validate emails Pin
MrM&M30-May-08 8:08
MrM&M30-May-08 8:08 
I tried to put everything in the subject in case we can resolve this here and so it can be found. Site is running in IIS with ASP.NET 2. I use mainly C# and have also have IIS version of PHP.

The error I speak of is returned when using Dns.Resolve() or Dns.GetHostAddresses(). Deprecated or not I tried resolve() which actually was more consistent across environments including desktop app from personal computer. Sometimes GetHostAddresses() didn't work at all.

I am attempting to validate emails from an ASP.NET site without actually sending an email. Using Sockets works in this case if you can get the end point which I was hoping Resolve() or GetHostAddresses() would do. We are not owners of the server, we are being hosted so I am not given access to nslookup which does work in this situation.

It seems there are some domain names out there that aren't really. One I speak of is sbcglobal.net. If I didn't have an sbcglobal.net email I may have never had ran into this myself and possibly counted a number of email invalid. So GEE! thanx AT&T for gobbling up SBC and giving something to beat my head on. So there you go, there is something you can test with. Try the name sbcglobal.net.

So does anybody know how nslookup can get this info (Querying MX records) and how I can duplicate that somehow in code behind. I use primarily C# for ASP.NET but have no problem with reading VB and translating. C++ using .NET would be fine as well.

I've looked all over the web and obviously here. I'm either not searching the right words, not hitting the right combo of phrases, or just nobody has bothered asking about this.

Here's links I went to and some of the code works fine as long as the DNS resolves.
.NET Code using Sockets[^]

Most sort of follow this same idea when using sockets. There are others but rely on a process call to nslookup. If you use this link and code it refers to something at egghead. Just right your own GetData. The one from egghead would hang because it was checking for and waiting on a value in .Available and not timing out. If you used streams before it should be easy to create your own as I ended up doing.

Also I was going to try PHP but checkdnssr is not available in IIS version of PHP as far as I can find.

Thanx ahead for any help.
QuestionEncrypting query string to prevent sql injection Pin
ChrisFarrugia30-May-08 7:30
ChrisFarrugia30-May-08 7:30 
AnswerRe: Encrypting query string to prevent sql injection Pin
Mark J. Miller30-May-08 7:45
Mark J. Miller30-May-08 7:45 
QuestionUsing a QueryString in Web Services Pin
stormcandi30-May-08 6:22
stormcandi30-May-08 6:22 
AnswerRe: Using a QueryString in Web Services Pin
Jacob Dixon30-May-08 6:48
Jacob Dixon30-May-08 6:48 
GeneralRe: Using a QueryString in Web Services Pin
stormcandi3-Jun-08 11:40
stormcandi3-Jun-08 11:40 
QuestionGridView Selected Index Change not working... Pin
Jacob Dixon30-May-08 5:53
Jacob Dixon30-May-08 5:53 
AnswerRe: GridView Selected Index Change not working... Pin
Jacob Dixon30-May-08 6:31
Jacob Dixon30-May-08 6:31 
Questionusing the response from XML Service for populating a GridView Pin
laziale30-May-08 3:39
laziale30-May-08 3:39 
AnswerRe: using the response from XML Service for populating a GridView Pin
led mike30-May-08 4:28
led mike30-May-08 4:28 
GeneralRe: using the response from XML Service for populating a GridView Pin
laziale30-May-08 4:38
laziale30-May-08 4:38 
GeneralRe: using the response from XML Service for populating a GridView Pin
led mike30-May-08 5:07
led mike30-May-08 5:07 
QuestionCascading drop downs in gridview with batch updating Pin
Syed Mehroz Alam30-May-08 3:25
Syed Mehroz Alam30-May-08 3:25 
Questiondisplay image in address bar of browser Pin
S.Aijaz30-May-08 2:18
S.Aijaz30-May-08 2:18 
AnswerRe: display image in address bar of browser Pin
R. Giskard Reventlov30-May-08 2:41
R. Giskard Reventlov30-May-08 2:41 
GeneralRe: display image in address bar of browser Pin
S.Aijaz30-May-08 2:46
S.Aijaz30-May-08 2:46 
GeneralRe: display image in address bar of browser Pin
Vasudevan Deepak Kumar30-May-08 3:16
Vasudevan Deepak Kumar30-May-08 3:16 
QuestionWebsite Execution Time [modified] Pin
Brendan Vogt30-May-08 0:59
Brendan Vogt30-May-08 0:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.