Learn how to a build a cloud-first strategyRegister Now


.NET query specific nameserver to resolve domain name

Posted on 2007-09-29
Medium Priority
Last Modified: 2013-11-23
Hi all,

how can I query a specific nameserver in .NET 1.1?

the system.net.dns class only seems to query the default nameserver... I want to be able to specify which server to use when resolving a hostname to it's IP
Question by:zattz
1 Comment
LVL 19

Accepted Solution

drichards earned 2000 total points
ID: 19984690
I think you will have to write your own DNS query code to do that.  As far as I know there is no way in .NET (any version) to specify a DNS server to use.  

A quick search at SourceForge turns up http://sourceforge.net/projects/opendnsnet/ which is DNS client software that claims to support user-defined servers.  You could give it a look.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question