Jump to content

Standard DNS server


piccaso
 Share

Recommended Posts

is there any api call/registry key that tells me which dns server windows is currently using?

or a way to get details about a network adapter? (like connected or not...)

google let me down on this :whistle:

thanks

Try this

RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "DhcpNameServer")

The above will give you all you DNS Servers separated by space.

Live and Learn, 'cause Knowledge is Super Power.
Link to comment
Share on other sites

is there any api call/registry key that tells me which dns server windows is currently using?

or a way to get details about a network adapter? (like connected or not...)

google let me down on this :whistle:

thanks

WMI and the class Win32_NetworkAdapterConfiguration will give you all you need. Search the forum...

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...