Jump to content
Sign in to follow this  
piccaso

Standard DNS server

Recommended Posts

piccaso

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


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites
sheck

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.

Share this post


Link to post
Share on other sites
/dev/null

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 *

Share this post


Link to post
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
Sign in to follow this  

×