How to make a DNS NAPTR lookup in .NET

prakthad

New member
Joined
Jun 28, 2007
Messages
1
Programming Experience
1-3
Hi,

Here is my question:
I need to make a NAPTR DNS request using .NET

Java has something that does this
i.e.
javax.naming.directory.DirContext ictx = new javax.naming.directory.InitialDirContext() ;
javax.naming.directory.Attributes attrs = ictx.getAttributes("dns:///something", new String[] {"NAPTR"});

I have been searching everywhere for something in .NET that does the same.
The only thing I could find is the System.Net.Dns.Resolve. But that does not allow you to specify what kind of DNS request you want to make i.e. A, MX, NAPTR. I also found some code snippets at codeproject but no one seems to have made anythign that can make queries for NAPTR records. My whole project has been done in VB.NET and though its not that big, I really would not want to switch over to Java just for this one thing.

Any help would be really appreciated. I have been stuck on this for a few days now.
Thanks in advance for your time and effort.

--Prak
 
Back
Top