Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2007

Tip: Looking for answers? Try searching our database.

System.Net.Dns - Is an Authoritative answer possible?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
brett.mack@gmail.com - 16 Jan 2007 15:06 GMT
Is it possible to get an authoritative answer from System.Net.Dns, much
as you can get from nslookup? I Know it's not giving me one because I
put an entry into my hosts file (a fake ip of a real entry) and it
gives me a response showing what's in the hosts file.

If not, is there another alternative within the .Net framework to get
authoritative DNS info?

Thanks in advance!
Kevin Spencer - 16 Jan 2007 19:34 GMT
That IS an authoritative response. DNS info is stored in files on various
servers (including the local machine). The machine first looks in its own
cache, and then queries its' DNS server, in that order. It may go on from
there, depending. The point of the whole business is to take the least
amount of time and bandwidth possible to get the answer.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

In case of Minimalism, break Philip Glass.

> Is it possible to get an authoritative answer from System.Net.Dns, much
> as you can get from nslookup? I Know it's not giving me one because I
[quoted text clipped - 5 lines]
>
> Thanks in advance!
brett.mack@gmail.com - 16 Jan 2007 19:38 GMT
Hmmm, okay, let me rephrase that:

I need a response from the server, bypassing the local dns cache &
hosts file, much like nslookup does.

> That IS an authoritative response. DNS info is stored in files on various
> servers (including the local machine). The machine first looks in its own
[quoted text clipped - 21 lines]
> >
> > Thanks in advance!
Henning Krause [MVP - Exchange] - 16 Jan 2007 21:25 GMT
Hello,

the .NET Api doesn't offer this. You'll have to interop into Win32 and call
the DnsQuery function.

It allows you to specify the options you require.

Best regards,
Henning

> Hmmm, okay, let me rephrase that:
>
[quoted text clipped - 26 lines]
>> >
>> > Thanks in advance!
Bmack500 - 18 Jan 2007 14:14 GMT
Thanks... would you happen to have a link that shows an example in
powershell or .net?

> Hello,
>
[quoted text clipped - 36 lines]
> >> >
> >> > Thanks in advance!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.