.NET query specific nameserver to resolve domain name

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

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

the 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

    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 which is DNS client software that claims to support user-defined servers.  You could give it a look.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now