Specifying a DNS Server with Dns Namespace

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to emulate passing the 'SERVER' parameter in an NSLOOKUP using the
Dns namespace, but I don't see anywhere this can be set.

For example, I may do this;

IPHostEntry ipEntry = Dns.GetHostEntry(strServerIP);

....but I want to specify WHICH DNS server to resolve against, not just the
default. From a command prompt I would do NSLOOKUP, then type SERVER [some
other NS]

Any help here? I don't HAVE to use GetHostEntry...I just need to resolve
IP/Hosts back and forth and SPECIFY the server to query, to test for
inconsistencies...

Thanks!
 
Just as a clarification, what I WISH I could do is something similar to:

Dns.NameServer = [a DNS Server to go against];
IPHostEntry ipEntry = Dns.GetHostEntry(strServerIP);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top